Is it possible to override supportedInterfaceOrientations

My code for Portrait/UpsideDown orientation in iPhone6.m for Xcode 7.0.1 in Obj-C is:


- (UIInterfaceOrientationMask)supportedInterfaceOrientations {

return (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown);

}



SLComposeViewController does not override supportedInterfaceOrientations and so it inherits the default implementation from UIViewController which returns UIInterfaceOrientationMaskAllButUpsideDown on iPhone



So I created a subclass of SLComposeViewController, but now how do I override supportedInterfaceOrientations?

Is it possible to override supportedInterfaceOrientations
 
 
Q