1.在AppDelegate中授权控制屏幕可以支持的方向,可以通过一个全局变量去控制。
当需要旋转时在当前viewController中通知AppDelegate授权
2.旋转
3.在viewController中监听旋转