Disable rotation in Document Provider iOS app extension

96 Views Asked by At

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
0

There are 0 best solutions below