har*_*ik 2 iphone user-interface objective-c device-orientation
你好,我有我的启动画面,我想在横向模式和所有其他屏幕在potrait模式下显示.我的根视图控制器充当启动屏幕我在viewdidload方法中编写此代码
[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight];
Run Code Online (Sandbox Code Playgroud)
但是这段代码没有用,并告诉我UI设备可能无法响应setorentation请指导我如何才能更改第一个启动画面的其他屏幕以及其他屏幕应该处于potrait模式
UIDeviceOrientation"设备" UIInterfaceOrientation是指设备的物理方向,而是指用户界面的方向.您无法更改设备的物理方向,但可以通过更改状态栏的显示方式[UIApplication sharedApplication].statusBarOrientation
| 归档时间: |
|
| 查看次数: |
5445 次 |
| 最近记录: |