Iphone 转换为通用应用程序-视图不会旋转
我正在将一个Iphone应用程序转换成一个通用应用程序,我已经创建了一个Ipad专用的视图控制器来处理视图,但是视图没有旋转,我看不到我遗漏了什么 视图上的shouldAutorotateToInterfaceOrientation始终返回yes,但视图不移动 它位于选项卡栏应用程序结构中 选项卡栏控制器>导航控制器>视图控制器Iphone 转换为通用应用程序-视图不会旋转,iphone,ios,ipad,uiviewcontroller,rotation,Iphone,Ios,Ipad,Uiviewcontroller,Rotation,我正在将一个Iphone应用程序转换成一个通用应用程序,我已经创建了一个Ipad专用的视图控制器来处理视图,但是视图没有旋转,我看不到我遗漏了什么 视图上的shouldAutorotateToInterfaceOrientation始终返回yes,但视图不移动 它位于选项卡栏应用程序结构中 选项卡栏控制器>导航控制器>视图控制器 锁也没有打开。您是否用支持的方向更新了应用程序的Info.plist设置 您可以通过单击左侧的项目名称->目标->摘要,然后根据设备单击支持的方向来完成此操作 也可以通
锁也没有打开。您是否用支持的方向更新了应用程序的Info.plist设置 您可以通过单击左侧的项目名称->目标->摘要,然后根据设备单击支持的方向来完成此操作 也可以通过编辑plist文件或使用特性列表编辑器添加新行,将其直接添加到plist文件中
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
UI支持接口方向
UIInterfaceOrientationPortrait
UIInterfaceOrientation上下方向图
UIInterface方向和左视图
UIInterfaceOrientationAndscapeRight
UI支持界面方向~ipad
UIInterfaceOrientationPortrait
UIInterfaceOrientation上下方向图
UIInterface方向和左视图
UIInterfaceOrientationAndscapeRight
您必须确保所有视图控制器都支持旋转,即使它们位于不同的选项卡中,否则将无法获得旋转效果 是的,它们被添加到info.plist中,但它不会旋转