Dee*_*rma 6 uiviewcontroller uiwindow auto-rotation ios7.1 ios8
这是一个简单的单视图控制器应用程序:
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
self.view.backgroundColor = [UIColor greenColor];
}
- (BOOL)shouldAutorotate
{
return YES;
}
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskLandscapeRight;
}
Run Code Online (Sandbox Code Playgroud)
iOS 8中的输出是如此不同.


这与iOS 8与iOS 7的UIWindow界限有什么关系.我如何获得iOS 7的行为?
| 归档时间: |
|
| 查看次数: |
4193 次 |
| 最近记录: |