iPhone锁定了人像,iPad锁定了风景 [英] iPhone locked Portrait, iPad locked Landscape

查看:78
本文介绍了iPhone锁定了人像,iPad锁定了风景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将iPhone应用转换为iPad。棘手的事情是iPhone应用程序必须锁定到纵向视图,iPad应用程序必须锁定到横向视图。我很擅长接口构建器,所以我有点迷失。

I'm trying to convert an iPhone app to iPad. The tricky things is that the iPhone app has to be locked to portrait view and the iPad app has to be locked to landscape view. I'm kind-of a noob at interface builder so I'm a little lost.

非常感谢任何帮助。谢谢!

Any help is greatly appreciated. Thanks!

推荐答案

您应该有两个笔尖并根据应用程序确定它运行的设备单独加载它们:一个用于iPad和iPhone的一个。然后,您可以轻松设置方向。注意:iPad应用程序应该支持所有方向变体(例如,如果你支持肖像,支持肖像颠倒)并且很可能会被Apple拒绝,除非你有一个令人信服的理由说明为什么不应该这样。

You should have two nibs and load them separately depending on which device your application determines it is running on: one for the iPad and one for the iPhone. You can then set the orientation easily. NB: The iPad app should support all orientations variants (ie. if you support portrait, support portrait upside-down) and will most likely get rejected by Apple unless you have a compelling reason as to why it shouldn't.

这篇关于iPhone锁定了人像,iPad锁定了风景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆