转换为通用应用程序 - 视图不会旋转 [英] Converting to Universal App - Views wont rotate
问题描述
我将Iphone应用程序转换为通用应用程序,我已经创建了一个Ipad特定的视图控制器来处理视图,但是视图没有旋转,我无法看到我缺少的东西。
Im converting an Iphone app to a universal App, I have created an Ipad specific view controller to deal with the view, However the view doesnt rotate and i cant see what im missing.
视图上的 shouldAutorotateToInterfaceOrientation 总是返回yes,但视图不会移动。
the shouldAutorotateToInterfaceOrientation on the view always returns yes but the view doesnt move.
它位于标签栏应用程序结构中
It is within a tab bar application structure
标签栏控制器>导航控制器>查看控制器
Tab Bar Controller > Navigation Controller > View Controller
并且锁定不在任何一个。
and the lock isnt on either.
推荐答案
您必须确保所有视图控制器都支持旋转,即使它们位于不同的选项卡中,否则您将无法获得旋转影响。
You have to make sure ALL the view controllers you have support rotation, even if the are in different tabs, otherwise you won't get the rotation effect.
这篇关于转换为通用应用程序 - 视图不会旋转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!