处理iPhone 5的更大设备尺寸 [英] Handling the larger device size of iPhone 5

查看:144
本文介绍了处理iPhone 5的更大设备尺寸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

如何处理iPhone 5的屏幕尺寸?

观看iPhone 5主题演讲,是设备高度和分辨率640 X 1136.所以我看到他们展示了现有的应用程序如何工作。但我相信如果我们使用像标签栏,导航栏等本机组件将工作正常。但是相对于设备方向而言,自定义标签栏,导航栏和控件如何呢?所以这些是我的问题。

Watched the iPhone 5 keynote and yes the device height and a resolution of 640 X 1136. So I saw they showed how existing apps which work on that. But I believe if we use native components like tab bar, navigation bar etc. will work fine. But how about custom tab bars, navigation bars and controls which resides relative to the device orientation. So these are my questions.

1)如何处理具有自定义标签栏,导航栏,相对内容等的自定义布局。

1) How to handle custom layouts which has custom tab bars, navigation bars, relative contents etc.

2)欢迎画面。我们现在需要2种尺码。那么在iPhone 5中我们还需要另外2个正常和视网膜吗?

2) Welcome screen. We will need 2 sizes right now. So in iPhone 5 do we need another 2 more for normal and retina?

3)如果您仔细观察主题演示,iPhone 5将从左侧和右侧剪切部分视图,因此应用程序开发中没有任何其他更改。有人注意到了吗?

3) If you carefully watched the keynote seems iPhone 5 will cut some portion of view from left and right so there is no any additional change in the app development. Has anybody noticed that?

推荐答案

1)这取决于你如何摆出它们,你可能需要调整你设置的方式框架,更改自动调整蒙版等,或者如果iOS 6只是一个选项,您可以移动到自动布局。在不知道你的代码的情况下,我无法提供更多详细信息

1) This depends on how you laid them out, you might need to adjust how you set the frame, change autoresizing masks etc, or if iOS 6 only is an option you could move to auto layout. Without knowing your code I cant give much more detail

2)没有非视网膜iPhone 5,所以你只需要1个 Default.png 大小,名为 Default-568h@2x.png (顺便说一句,添加这个新大小的默认图像是iOS的触发器,用于显示没有信箱的应用,所以对于某些应用程序来说,这是唯一需要进行的更改)

2) There is no non-retina iPhone 5 so you only need 1 more Default.png size, named Default-568h@2x.png (btw adding this new sized default image is the trigger for iOS to show your app without letterboxing, so for some apps this is the only change which will need to be made)

3)这是我提到的信箱,它是所有当前应用程序将在iPhone 5直到更新为新的default.png

3) This is the letterboxing I mentioned, it is what all current apps will do on the iPhone 5 until they are updated with a new default.png

这篇关于处理iPhone 5的更大设备尺寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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