iOS 6: Parent modal's modalPresentationStyle ignored after rotation

前端 未结 3 761
太阳男子
太阳男子 2021-02-05 01:47

With iPad with iOS6, we have this bug where a modal view controller will expand to full screen, even if it is told to be using \"form sheet\" presentation style. But, this hap

3条回答
  •  误落风尘
    2021-02-05 02:39

    I can see 2 problems here.

    1) in iOS 6 the method presentModalViewController:animated: is deprecated, try using presentViewController:animated:completion: (despite this might not help, you still may want to do it)

    2) In iOS 6 somehow appeared that container controllers (such as UINavigationController) don't resend the autorotate messages to their children. Try subclassing the UINavigationController and redefine the corresponding autorotation methods to be sent to all of the children. This might help.

提交回复
热议问题