【发布时间】:2012-09-25 20:33:17
【问题描述】:
这会产生错误
只为 iphone 生成一个项目,方向为横向左侧和横向右侧
向界面生成器添加按钮
在 ipad 模拟器上运行
按下按钮,它不起作用。
我能做什么?
【问题讨论】:
标签: iphone xcode ipad uibutton ios6
这会产生错误
只为 iphone 生成一个项目,方向为横向左侧和横向右侧
向界面生成器添加按钮
在 ipad 模拟器上运行
按下按钮,它不起作用。
我能做什么?
【问题讨论】:
标签: iphone xcode ipad uibutton ios6
这解决了 ios 6 中的方向问题
-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight;
}
【讨论】:
在 ViewController 中实现 supportedInterfaceOrientations 方法没有帮助。
一种解决方法是选择“通用”(iPhone + iPad)作为目标设备。
【讨论】: