HXRotationTool
HXRotationTool copied to clipboard
AppDelegate中supportedInterfaceOrientationsForWindow 给控制器返回不触发的问题
- 如果Root是UITabBarController 的情况, appDelegate 中的方向给子控制去控制
-
添加UITabBarVC的Categoty 和 UINavigationController的Category 没触发supportedInterfaceOrientations 方法是为是啥
-
进入页面直接横屏怎么操作?
主要是为了把supportedInterfaceOrientations控制权交给当前窗口最顶端的VC,而不是被UITabBarVC或UINavigationController自己拦截掉。
进入页面直接横屏怎么操作?我建议你用presentViewController:
另外,联机调试时的效果可能不是你所期望的那样,建议重启APP看效果。