1

这会产生错误

Generate a project for iphone only withorientation Landscape left 和 Landscape Right
向界面生成器添加一个按钮
在 ipad 模拟器上运行
按下按钮,它不起作用。

我能做些什么?

4

2 回答 2

1

这解决了ios 6中的方向问题

-(NSUInteger)supportedInterfaceOrientations{ 
return UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight; 

}
于 2012-11-11T19:51:22.187 回答
0

在 ViewController 中实现该supportedInterfaceOrientations方法没有帮助。

一种解决方法是选择“通用”(iPhone + iPad)作为目标设备。

于 2013-01-02T12:01:53.550 回答