第二个(横向)应用程序的屏幕在iOS6中变成肖像
问题描述:
我正在横向模式下的iPad应用程序中工作,只有在iOS5和以下才能很好地工作。 在iOS6上,第2个屏幕(登录屏幕)在纵向模式下突然转动。 我应该检查什么参数?第二个(横向)应用程序的屏幕在iOS6中变成肖像
答
检查下面的方法。
//需要上述iOS6的
- (BOOL)shouldAutorotate
{
return NO; // YES or NO as per your requirement
}
- (BOOL)supportedInterfaceOrientations
{
return UIInterfaceOrientationLandscapeRight|UIInterfaceOrientationLandscapeLeft;
}
由于@ParthDubai,我解决了问题在添加 '[窗口setRootViewController:的viewController];' 中的AppDelegate – oseres