IPad rotation bug when using MPMoviePlayerViewController?

Successful response from Apple Developer Technical Support!

Successful response from Apple Developer Technical Support! This is a known bug and a we're received a number of duplicate bug reports and so iOS engineering is aware of the issue and we do have a temporary workaround as suggested by iOS engineering. You will need to implement this in the view controller which presents the movie player.

- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { super didRotateFromInterfaceOrientation:fromInterfaceOrientation; self performSelector:@selector(fixStatusBar) withObject:nil afterDelay:0; } - (void)fixStatusBar { UIApplication sharedApplication setStatusBarOrientation:self interfaceOrientation animated:NO; } While this is somewhat ugly, it should fix the issue for now. It would be recommended to remove this code once the bug is fixed in the system. This took care of the issue completely for me, and you can revisit http://github.com/adamalex/FullScreenMovie for the code with the fix applied.

This also solves an iPhone/iPodTouch rotation issue that I was struggling with. I am developing a universal app in which each view displays a different image depending on whether the device is in portrait or landscape orientation. Buttons are used to navigate between views.

If the app is running on the device and a portrait view is rotated to landscape, my image switching takes place. If the device is then placed flat on a table top and the button is tapped to display the next view, the view appears in landscape but shows the portrait image instead. I solved the problem by forcing a portrait view to appear by detecting for face up and down, but Apple's code solved this problem (as well as the similar movie problem I was also experiencing).

Many thanks for reporting the bug - I assumed it was just my bad coding...

This solved the same problem I had. When playing video using MPMoviePlayerViewController on iPad, if I rotated while playing, the view would be upside down when I returned to it with the status bar on the wrong side and a gap where it was. Thank you very much for documenting this problem.

I would upvote you if I had a rep :(.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions