【问题标题】:Avoid rotation of EKEventEditViewController避免旋转 EKEventEditViewController
【发布时间】:2014-05-29 07:22:09
【问题描述】:

如何避免 EKEventEditViewController 的旋转?就我而言,我只需要将其限制为肖像。我们可以改变EKEventEditViewController的导航控制器吗?

【问题讨论】:

    标签: ios7 uiinterfaceorientation ekevent


    【解决方案1】:

    找到了解决方法。

    创建一个子类 EKEventEditViewController,并在该类中覆盖

    -(BOOL)shouldAutorotate{
    //Does not support anything other than portrait
       return NO;
    }
    

    然后使用该自定义类而不是 EKEventEditViewController。

    【讨论】:

      猜你喜欢
      • 2013-08-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-12
      • 2014-12-20
      • 2023-03-26
      • 2011-09-25
      • 2017-11-05
      相关资源
      最近更新 更多