willRotateToInterfaceOrientation not being called

前端 未结 6 1147
暖寄归人
暖寄归人 2020-12-11 02:13

I\'m returning YES in my view controller\'s shouldAutorotateToInterfaceOrientation function, and I can see using breakpoints that YES

6条回答
  •  粉色の甜心
    2020-12-11 02:20

    One thing to look for is I found if I had UIPopoverController called in [UINavigationController viewDidAppear], then willRotateToInterfaceOrientation and didRotateFromInterfaceOrientation are not called. It looks like UIPopoverController being modal blocks the rotation method calls.

提交回复
热议问题