简体   繁体   English

iPhone 5 4英寸屏幕更新

[英]iPhone 5 4 Inch Screen Update

I'm updating my app for the iPhone 5. Now I've read the topics about setting the Autosize Property and I've done that. 我正在为iPhone 5更新我的应用程序。现在,我已经阅读了有关设置“自动调整大小”属性的主题,并且已经完成。

My question is regarding some of my elements. 我的问题是关于我的一些要素。 The interface of the app is really simple. 该应用程序的界面非常简单。 It uses a pre-defined apple background (no custom images), and has 4 labels and a Information Button. 它使用预定义的苹果背景(无自定义图像),并具有4个标签和一个信息按钮。

Two of the labels are fine but the other two and the button are aligned with the bottom of the screen, but with Auto-Sizing it creates and 1/2 inch of background between them and edge of screen. 其中两个标签很好,但另两个和按钮与屏幕底部对齐,但是使用“自动调整大小”功能,可以在它们和屏幕边缘之间创建1/2英寸的背景。

If there any way to make them stay at the bottom of the screen like that but without having to create a whole new view for iPhone 5, with them positioned right and them programmtically select it when needed, as that is a slightly too complex way for the sake of two labels and a button. 如果有什么办法可以使它们停留在屏幕的底部,而不必为iPhone 5创建一个全新的视图,则将它们放置在正确的位置,并在需要时通过编程方式选择它,因为这对于用户来说有点太复杂了。为了两个标签和一个按钮。

EDITED 已编辑

Here is some screenshots. 这是一些屏幕截图。

Should look like this (iPhone 4S 3.5 Inch Screen) 应该看起来像这样(iPhone 4S 3.5英寸屏幕)

linky 友善的

Does look like this (iPhone 5 4 Inch Screen) 看起来像这样(iPhone 5 4英寸屏幕)

linky 友善的

To get the expected behaviour while using Autolayout, in Interface Builder, you need to select the two labels in the bottom and then go to 要在使用“自动布局”时获得预期的行为,在Interface Builder中,您需要选择底部的两个标签,然后转到

Editor -> Pin -> Bottom Space to Superview 编辑器->固定->要查看的底部空间

This will make sure that the bottom spacing is as expected. 这样可以确保底部间距符合预期。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM