Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在开发一个带有 sencha touch 和 phonegap 的移动应用程序。我想提供在横向模式下使用该应用程序的选项,但是一些屏幕(主要是参数)在横向模式下很难看,并且重新设计的工作量太大。
有什么办法可以防止特定屏幕旋转?
如果您不想编写代码,则在生成 xcode 项目后编辑 YOURAPP*.plist 文件以更改UISupportedInterfaceOrientations为UIInterfaceOrientationLandscapeRight(右侧有按钮的风景),或者如果您正在使用 Xcode 的可视化编辑器进行编辑,请查找Supported interface orientations并将其更改为您想要的任何方向。
UISupportedInterfaceOrientations
UIInterfaceOrientationLandscapeRight
Supported interface orientations