在我的应用中,故事板控制了2个视图。主视图和翻转视图都是横向视图,但是当我使用模态功能在它之间进行过渡时,我的翻转视图变为肖像我使用代码
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}
在lanscape中显示应用程序,但它变成了肖像!我的plist和目标摘要都说lanscape。
所有帮助将不胜感激!