To play video in my app, I set MPMoviePlayerController
and add it to subview. The user can change to full screen mode using pinch gesture.
In this viewController
(that contains the Movie Player View), I set the viewWillDisappear
to set objects to nil.
But, in iOS 6, when activating fullscreen mode the MPMoviePlayerController
in the view controller that contains the Movie Player View calls the methods viewWillDisappear
and viewDidDisappear
.
In iOS5, those methods were not called.
I came across this issue as well and it caused me a lot of headache. My temporary solution until the bug is fixed is to check the player's fullscreen
Boolean value in viewWillDisappear:
and/or viewDidDisappear:
. If it returns YES
, the movie is entering fullscreen mode and you should refrain from doing anything that might interrupt it.
To everyone has noticed that and having problem with this, I found this report in community Open Radar: http://openradar.appspot.com/12327997
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With