【发布时间】:2014-01-15 10:01:16
【问题描述】:
一个问题是asked earlier。我遇到了同样的问题,即电影播放器没有旋转,因为项目属性不允许旋转。这个问题只在 iPhone 上的 iOS7 中遇到过,所以我正在尝试另一种解决方法,我在项目属性中启用所有方向,但问题是当我通过这样的功能禁用其他视图控制器中的旋转时
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
return FALSE;
}
// Tell the system what we support
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationPortrait;
}
- (BOOL) shouldAutorotate {
return NO;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
return UIInterfaceOrientationPortrait;
}
视图控制器仍在旋转,我想这是因为它在项目属性中是允许的。
所以问题是..
如何在特定的媒体播放器视图控制器中禁用旋转 什么时候项目设置允许所有旋转?
或
如何在特定的媒体播放器视图控制器中覆盖旋转 在项目属性(禁用旋转)上不起作用 iOS7
【问题讨论】:
标签: iphone objective-c ios7 rotation mpmovieplayercontroller