How to maintain presenting view controller's orientation when dismissing modal view controller?

前端 未结 9 2144
礼貌的吻别
礼貌的吻别 2020-11-30 03:57

I have this app I am working on and I need ALL my view controllers but one to be in portrait. The single one view controller that is special I need it to be able to rotate t

9条回答
  •  伪装坚强ぢ
    2020-11-30 04:18

    I had the same issue, finally found a solution to open the modal view controller in another UIWindow, and it worked smoothly.

    Stack - iOS8 - prevent rotation on presenting viewController

    For code: https://github.com/OrenRosen/ModalInWindow

提交回复
热议问题