UISplitViewController 景观
如何强制我的应用程序以横向模式启动 UISplitViewController?
How can I force my application to launch an UISplitViewController in landscape mode?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以在 Info.plist 文件中拥有不同的基于设备的设置。
我找到了一个示例,其中讨论了如何以横向模式(取决于设备)启动应用程序,如下所示:
第一个标签指 iPhone,~iPad 标签指 iPad。不确定这个链接是否对您有帮助,但这(我的意思是 Info.plist 方式)绝对是正确的选择。
希望有帮助。
你好
乔瓦尼
you can have different device-based settings in your Info.plist file.
I found an example where it talked about having the app launching in Landscape mode (depending on device) like this:
With the first tag refering to iPhone and the ~iPad one refering to iPad. Not sure if this link will help you, but this (I mean the Info.plist way) is definitely the way to go.
Hope it helps.
Ciao
Giovanni
您可以随时使用此方法。
You can always use this method.
这是一个相当老的问题,Apple 自此更新了 XCode 来处理这种特定情况。这些步骤在 XCode 8.2.1 中进行了测试。
在 plist 编辑器中,展开两种外形尺寸支持的接口(电话/触摸是第一个):
然后,只需根据设备类型删除您不希望支持的图像即可。
This is a pretty old question, and Apple has since updated XCode to handle this specific situation. These steps were tested in XCode 8.2.1.
In the plist editor, expand out the supported interfaces for both form factors (Phone/Touch is the first one):
Then, simply delete the ones you do not wish to support based on device type.