
在 AppDelegate.m中添加如下代码:
-(UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{ return UIInterfaceOrientationMaskPortrait; }
在 AppDelegate.m中添加如下代码:
-(UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{ return UIInterfaceOrientationMaskPortrait; }
遇见资源网 objective-c iOS 设置app禁止横屏 http://www.ox520.com/18192.html