Reputation: 47
(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?
Upvotes: 1
Views: 48
Reputation: 130
There are different reasons to happen this. Once check this.
In Devices check iPad and iPhone orientations and select only Portrait. Then delegate methods will call.
Upvotes: 0