- (NSUInteger)supportedInterfaceOrientations is not getting called through a custom framework in project

47 Views Asked by At
  • (NSUInteger)supportedInterfaceOrientations is not getting called in a custom framework which I have used in my project's UIViewController, while in separate project it is working fine and getting called properly

    • (BOOL)shouldAutorotate { return YES; }

    • (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskPortrait; }

    • (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { return UIInterfaceOrientationPortrait; }

Is there any way to get it called through a custom framework in a project?

1

There are 1 best solutions below

0
phani On

There are different reasons to happen this. Once check this.enter image description here

In Devices check iPad and iPhone orientations and select only Portrait. Then delegate methods will call.