iPhone 如何添加横屏代码

来源:互联网 发布:步兵升级数据 编辑:程序博客网 时间:2024/06/05 09:56

方案之一,

UINavigationController 里设置supportedInterfaceOrientations方法,但由于UINavigationController 是系统控件,所以需要新建一个UINavigationController 的子类,然后在子类里实现

-(NSUInteger)supportedInterfaceOrientations{        return UIInterfaceOrientationMaskAllButUpsideDown;    }    


0 0
原创粉丝点击