【问题标题】:Event touch up inside work in iphone but dont work in ipad ios6事件在 iphone 内部工作,但在 ipad ios 6 中不起作用
【发布时间】:2012-09-25 20:33:17
【问题描述】:

这会产生错误

只为 iphone 生成一个项目,方向为横向左侧和横向右侧
向界面生成器添加按钮
在 ipad 模拟器上运行
按下按钮,它不起作用。

我能做什么?

【问题讨论】:

    标签: iphone xcode ipad uibutton ios6


    【解决方案1】:

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

    -(NSUInteger)supportedInterfaceOrientations{ 
    return UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight; 
    
    }
    

    【讨论】:

      【解决方案2】:

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

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

      【讨论】:

        猜你喜欢
        • 2012-09-25
        • 2012-10-09
        • 1970-01-01
        • 2012-01-22
        • 2013-03-03
        • 1970-01-01
        • 2015-01-22
        • 2016-10-17
        • 1970-01-01
        相关资源
        最近更新 更多