如何覆盖SupportedInterfaceOrientations(iOS)

时间:2015-10-20 19:29:20

标签: ios objective-c override uiinterfaceorientation

我的纵向/倒置方向代码是:

-(UIInterfaceOrientationMask)supportedInterfaceOrientations{
     return (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown);
}

SLComposeViewController不会覆盖supportedInterfaceOrientations,因此它会继承UIViewController的默认实现,该实现为iPhone返回UIInterfaceOrientationsMaskAllButUpsideDown

我创建了SLComposeViewController的子类,但现在如何覆盖supportedInterfaceOrientations

0 个答案:

没有答案