iOS6 Preferred Interface Orientation Not Working

后端 未结 1 469
暗喜
暗喜 2021-01-25 22:45

I\'m trying to work with the iOS6 Auto-rotation mess.

I\'ve looked at almost every single SO question relating to it, and no matter what I try, I can\'t get rotation wor

相关标签:
1条回答
  • 2021-01-25 23:10

    It would appear Apple have removed the ability to push a view in a specific orientation. preferredInterfaceOrientationForPresentation does get called, but only when popping back or presenting a view controller. I had to present my landscape view rather than push it, and set shouldAutoRotate = NO.

    Refer to: In iOS6, trouble forcing ViewController to certain interfaceOrientation when pushed on stack for more details.

    0 讨论(0)
提交回复
热议问题