您的位置:首页 > 编程语言

iPhone 如何添加横屏代码

2015-08-21 14:27 197 查看
方案之一,

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

-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskAllButUpsideDown;
}



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: