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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -