Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nickculbertson

macrumors regular
Original poster
Nov 19, 2010
226
0
Nashville, TN
Hello,
I have an app with the status bar hidden. I'm playing a video with the following code.

Code:
-(IBAction) movieiphone{
	NSBundle *bundle = [NSBundle mainBundle];
	NSString *moviePath = [bundle pathForResource:@"lessonmobile" ofType:@"m4v"];
	NSURL *movieURL = [[NSURL fileURLWithPath:moviePath] retain];
	MPMoviePlayerController *theMovie = [[MPMoviePlayerController alloc] initWithContentURL:movieURL];
	[theMovie play];
	MPMoviePlayerController *moviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:movieURL];
	[self presentMoviePlayerViewControllerAnimated:moviePlayer];
	
}

If the video plays entirely the main view is reloaded on the screen as it was before I played the movie. The problem I am facing is that if I push the done button in the movie controller the main view is modally reloaded with a blank space where the status bar would normally be. Any thoughts on how to have the main view to appear as it did before (without the space for the status bar) if the done button is pressed?

Screen+shot+2011-04-15+at+8.40.39+AM.png


Thanks,
Nick
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.