三种设置显示方向的方法
1. 方法一:
当出现模拟器时, command + 方向键 可以旋转模拟器的方向.
2. 方法二:
打开xcode的Resource下的xxx-info.plist文件.
在编辑器中添加: supported interface orientations 项,其值设为Landscape 还是 Portrait将决定模拟器的显示方向是横向还是纵向.
3.方法三
[application setStatusBarOrientation: UIInterfaceOrientationLandscapeRight animated:NO];
本文介绍了三种在iOS模拟器中设置显示方向的方法:使用快捷键旋转模拟器、修改xxx-info.plist文件中的supportedinterfaceorientations项以及通过代码设置应用状态栏的方向。
1661

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



