我的整个应用程序被锁定在纵向方向,但是当播放视频时,我想允许所有方向仅用于视频播放。iOS 7在视频播放中解锁设备方向
故事板: TabBarController - > NavigationController - > MyVideosController - > MyVideoPlayerController
这是我试过很多之一: Allow One View to Support Multiple Orientations While Others Do Not iPhone
的问题是,我从来没有达到这个方法在我MyVideoPlayerController.m:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
该方法已被弃用。 –