【发布时间】:2014-05-29 07:22:09
【问题描述】:
如何避免 EKEventEditViewController 的旋转?就我而言,我只需要将其限制为肖像。我们可以改变EKEventEditViewController的导航控制器吗?
【问题讨论】:
标签: ios7 uiinterfaceorientation ekevent
如何避免 EKEventEditViewController 的旋转?就我而言,我只需要将其限制为肖像。我们可以改变EKEventEditViewController的导航控制器吗?
【问题讨论】:
标签: ios7 uiinterfaceorientation ekevent
找到了解决方法。
创建一个子类 EKEventEditViewController,并在该类中覆盖
-(BOOL)shouldAutorotate{
//Does not support anything other than portrait
return NO;
}
然后使用该自定义类而不是 EKEventEditViewController。
【讨论】: