1
  • (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 Answers1

0

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.

phani
  • 105
  • 2
  • 15