Hide StatusBar from MPMoviePlayerController

来源:互联网 发布:java修饰符 编辑:程序博客网 时间:2024/06/03 19:52

I've been struggling with a very annoying problem all day long and I hope I could find help on this board.

I'm using an MPMoviePlayerController to play a fullscreen movie on iPad and I can't figure how to remove the status bar which is always displayed despite all my efforts to make it go to hell.



this is not an answer, I am having the same issue. There is one part I can update however..

The status bar only shows when the controls show.

Clicking on the movie, hides the conrols & the status bar, clicking again, shows the controls, and the status bar comes back too.

I am also hiding the status bar programmatically just before I launch the movie.

[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:NO];

and here is how I am adding the movie:

[[[UIApplication sharedApplication] keyWindow] addSubview: movieView];