MPMoviewPlayerController fullscreen playback rotation with underlying UIViewController with portrait mode only (rotation disallowed)

前端 未结 5 568
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-05 01:35

Hallo,

I have a simple application, which does contain UITabBarController with two UIViewControllers. Both UIViewControllers are portrait only (no rotation allowed).

5条回答
  •  青春惊慌失措
    2020-12-05 01:57

    You can try to present new UIViewController (with shouldAutorotate YES) modally and add __moviePlayer.view into this controller when it sends MPMoviePlayerWillEnterFullscreenNotification. Do the opposite when moviePlayer exits fullscreen.

提交回复
热议问题