简体   繁体   English

从情节提要中删除了默认场景,无法旋转!\\

[英]Removed default scene from storyboard cant rotate!\

So I created a universal app, when I go into my iPad storyboard and remove the only scene that was created then add something like a navigation controller, tableview controller or even a regular view controller, I can no longer rotate my application in simulator. 因此,我创建了一个通用应用程序,当我进入iPad情节提要板并删除创建的唯一场景,然后添加导航控制器,表视图控制器甚至常规视图控制器之类的内容时,我将无法再在模拟器中旋转应用程序。 I have made no code changes at this point. 目前,我尚未更改任何代码。 I verified that my shouldAutorotateToInterfaceOrientation method hasnt changed. 我确认我的shouldAutorotateToInterfaceOrientation方法没有更改。 Is there a setting that I am missing that I have to set in the scene to allow it to rotate? 是否有我需要在场景中设置的设置才能旋转?

您可能忘记了将新控制器的类设置为应具有应当shouldAutorotateToInterfaceOrientation的类

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM