[英]iOS simulator Landscape Portrait
我有一个iOS应用程序,该应用程序是在XCode早期的iOS 5上构建的,并且支持`` Landscape left , Landscape right and portrait (bottom home )
info.plist
Landscape left , Landscape right and portrait (bottom home )
info.plist
Landscape left , Landscape right and portrait (bottom home )
1 landscape(right home button) 2 landscape(left home button) 3 portrait (bottom home )
以及从info.plist
> support interface orientation
-> 1 landscape(right home button) 2 landscape(left home button) 3 portrait (bottom home )
到打开应用程序的流程
意味着模拟器默认情况下会打开landscape(right home button)
。
但是问题是我在模拟器iOS 5.0
运行应用程序时->默认情况下会打开landscape(right home button)
。
但是当我在模拟器iOS 6.1
运行应用程序时-> Portrait mode opens by default.
为什么我将landscape(right home button)
默认为landscape(right home button)
设置为默认打开时,iOS 6.1模拟器会打开人像模式。
基本的SDK或任何其他东西都没有问题。.当我在iOS的早期版本上构建时。
在iOS 6中更改了界面方向的处理方式。要研究的两种主要方法如下:
-(NSUInteger)supportedInterfaceOrientations
和
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
两者都在UIViewController
声明。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.