Search code examples
objective-cipaduiinterfaceorientationaddsubview

"didRotateFromInterfaceOrientation:" not called


hi i am traying to add subview a controller's view in a small view of the main view but the didRotateFromInterfaceOrientation:. of the child controller isnt called so i canot make any changes for the change in the orientation


Solution

  • Do you have more than 1 UIViewController actively displaying its view on the screen at the same time? iOS really only expects 1 view belonging to a UIViewController on the screen at once. If there is more than 1 then only the UIViewController whose view is full screen will get its orientation change methods called.