Please check the below code:
(void) moviePlayerDidExitFullscreen:(NSNotification*)notification
{
MPMoviePlayerController *player = [notification object];
[[NSNotificationCenter defaultCenter] removeObserver:self
name:MPMoviePlayerDidExitFullscreenNotification
object:player];
[player setControlStyle:MPMovieControlStyleNone];
if (isPlaying)
{
[self stopCurrentMoviePlayer];
}
}
The issue is that this works perfectly in IOS 5, but not working in IOS 6 updates iPad3.
The movie player is not closing after the video is complete and I need to click done button every time to close the Movie Player.
Can anyone provide a solution for this issue?