Search code examples
iphoneios4mpmovieplayercontroller

How to change UIModalTransitionStyle for MPMoviePlayerViewController


When I use the MPMoviePlayerViewController, I don't seem to be able to change the modalTransitionStyle to anything other than the default slide up animation.

Has anyone else managed to get this to work?

MPMoviePlayerViewController* theMoviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL fileURLWithPath:videoURL]];
theMoviePlayer.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; // doesn't work
[self presentMoviePlayerViewControllerAnimated:theMoviePlayer];

Thanks


Solution

  • Looking at

    http://www.drobnik.com/touch/2010/07/the-3-2-hurdle-of-mpmovieplayercontroller/

    It seems the code there also sets the modalTransitionStyle of the view controller presenting the MPMoviePlayerViewController instance to the same value. Does that work?