自转不起作用
问题描述:
我在每个视图控制器的码:自转不起作用
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}
在plist中也我改变支持的设备取向。
它还能是什么?
P.S.当我检查 - 关于轮换的通知不再发送。有可能是一些框架冲突......
答
检查了这一点Why won't my UIViewController rotate with the device?
而且一个备注,请不要修改从plist中的设备取向,还有另一种方式,选择项目,然后摘要选项卡,然后在支持设备方向选择你需要的。这种方式会自动编辑你的plist。
您的设备被锁定?大声笑 – Pochi
没有:)我在界面生成器上的设备和模拟器 – Shmidt
上测试过,你确定你的两个控制器的方向是“推断的”吗? – Pochi