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.

enter image description here

update:

if 'requires full screen' setting 'general' enable, allow orientation delegate methods shouldautorotate, preferredinterfaceorientation, , supportedinterfaceorientations fire.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -