iOS -> RootViewController.mm ->
#ifdef __IPHONE_6_0
- (NSUInteger) supportedInterfaceOrientations{
return UIInterfaceOrientationMaskAllButUpsideDown;//UIInterfaceOrientationMaskPortrait 横竖修改
}
ProjectName -> General -> Deployment info -> Device Orientation -> 进行修改
本文介绍如何在iOS应用中设置界面支持的方向,通过修改RootViewController.mm文件中的supportedInterfaceOrientations方法实现不同设备上的显示效果调整。
2147

被折叠的 条评论
为什么被折叠?



