我正在使用横向模式的iPad应用程序,只能在iOS5及以下版本下运行良好。 在iOS6上,第二个屏幕(登录屏幕)在纵向模式下突然转动。 我应该检查哪些参数?
答案 0 :(得分:0)
检查以下方法。
//需要上面的ios6
- (BOOL)shouldAutorotate
{
return NO; // YES or NO as per your requirement
}
- (BOOL)supportedInterfaceOrientations
{
return UIInterfaceOrientationLandscapeRight|UIInterfaceOrientationLandscapeLeft;
}