ios - supportedInterfaceOrientations not called in iPad -
i have uitabbarcontroller subclass , has below code:
class tabbarcontroller: uitabbarcontroller { // mark: methods override func viewdidload() { super.viewdidload() } override func supportedinterfaceorientations() -> uiinterfaceorientationmask { print(self.selectedindex) if self.selectedindex == 1 { return .portrait } return .all } } the function supportedinterfaceorientations called when execute app iphone. if execute app ipad mini not called. idea of reason of behaviour?
it strange, if deselect upside down device orientation ipads supportedinterfaceorientations called.
update:
if 'requires full screen' setting 'general' enable, allow orientation delegate methods shouldautorotate, preferredinterfaceorientation, , supportedinterfaceorientations fire.

Comments
Post a Comment