I have a problem regarding to MPMoviePlayer. I am using [self presentModalViewController:moviePlayer animated:YES]; to display player. When I click on Done button
(void) moviePlayBackDidFinish:(NSNotification*)notification
{
[[UIApplication sharedApplication] setStatusBarHidden:YES];
// Remove observer
[[NSNotificationCenter defaultCenter] removeObserver:self
name:MPMoviePlayerPlaybackDidFinishNotification
object:nil];
//[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:1] animated:YES];
[self dismissModalViewControllerAnimated:YES];
//[self.view removeFromSuperview];
}
method calls. When it navigates to previous view, previous view’s x and y ordinates get disturbed and everything is changed, means, the view gets changed. Any suggestions ?
Solved the problem by removing
[[UIApplication sharedApplication] setStatusBarHidden:YES];code.