【发布时间】:2013-05-16 15:08:04
【问题描述】:
我正在开发一个横向模式的 iPad 应用程序,该应用程序仅在 iOS5 及以下版本下运行良好。 在 iOS6 上,第二个屏幕(登录屏幕)突然变成纵向模式。 我应该检查哪些参数?
【问题讨论】:
标签: ipad ios6 landscape regression uiinterfaceorientation
我正在开发一个横向模式的 iPad 应用程序,该应用程序仅在 iOS5 及以下版本下运行良好。 在 iOS6 上,第二个屏幕(登录屏幕)突然变成纵向模式。 我应该检查哪些参数?
【问题讨论】:
标签: ipad ios6 landscape regression uiinterfaceorientation
检查以下方法。
//ios6以上需要
- (BOOL)shouldAutorotate
{
return NO; // YES or NO as per your requirement
}
- (BOOL)supportedInterfaceOrientations
{
return UIInterfaceOrientationLandscapeRight|UIInterfaceOrientationLandscapeLeft;
}
【讨论】:
[window setRootViewController:viewController]; 的问题