HXRotationTool icon indicating copy to clipboard operation
HXRotationTool copied to clipboard

AppDelegate中supportedInterfaceOrientationsForWindow 给控制器返回不触发的问题

Open kanluo91 opened this issue 1 year ago • 1 comments

  1. 如果Root是UITabBarController 的情况, appDelegate 中的方向给子控制去控制

image

  1. 添加UITabBarVC的Categoty 和 UINavigationController的Category 没触发supportedInterfaceOrientations 方法是为是啥

  2. 进入页面直接横屏怎么操作?

kanluo91 avatar Jun 11 '24 02:06 kanluo91

主要是为了把supportedInterfaceOrientations控制权交给当前窗口最顶端的VC,而不是被UITabBarVC或UINavigationController自己拦截掉。

进入页面直接横屏怎么操作?我建议你用presentViewController:

另外,联机调试时的效果可能不是你所期望的那样,建议重启APP看效果。

TheLittleBoy avatar Jun 11 '24 05:06 TheLittleBoy