2

I am making an app extension and would like the orientation to be portrait only. Can I prevent rotation of the app I'm extending to landscape, once my app extension has been loaded?

I tried adding these methods in my extension's UIViewController but it didn't seem to change anything:

- (BOOL)shouldAutorotate;

- (UIInterfaceOrientationMask)supportedInterfaceOrientations
Shaked Sayag
  • 5,712
  • 2
  • 31
  • 38

0 Answers0