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

ChamY

macrumors newbie
Original poster
Jun 25, 2010
2
0
Hi,

I have a problem with the new MPMoviePlayerViewController (IOS > 3.2).
My app use the property : Status bar is initially hidden set to YES

I use this code to lunch my videoplayer:
Code:
NSBundle *bundle = [NSBundle mainBundle];
NSString *path =@"test";
	
NSString *moviePath = [bundle pathForResource:path ofType:@"mp4"];
NSURL *movieURL = [[NSURL fileURLWithPath:moviePath] retain];

MPMoviePlayerViewController *moviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:movieURL];
[self  presentMoviePlayerViewControllerAnimated:moviePlayer];

This works great, but the status bar is shown in this viewController. and if user tap on "Done" button (video player control bar), the view disappear and a white bar appear at the top of the screen (see screenshot attached).

before:

attachment.php


after:

attachment.php


I dont know how to redraw or hide this status bar .

it's easy to reproduce this problem. Just create a viewController and set YES to the hidden status bar. Just lunch the MPMoviePlayerViewController and click on done button.

Help me please.
 

Attachments

  • Screen shot 2010-06-25 at 11.05.19 AM.png
    Screen shot 2010-06-25 at 11.05.19 AM.png
    94.3 KB · Views: 161
  • Screen shot 2010-06-25 at 11.03.35 AM.png
    Screen shot 2010-06-25 at 11.03.35 AM.png
    104.5 KB · Views: 169
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.