X code5(3.5英寸屏幕4英寸) [英] Xcode5 ( 3.5" screen to 4 inch )

查看:206
本文介绍了X code5(3.5英寸屏幕4英寸)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我已经升级到X code 5,打开了曾X $ C $ç4.6.1创建的项目。等我回去和重新安排好了一切所有的图像和按钮都搬来搬去。现在,一个新的问题出现,当我从4模拟器切换到3.5英寸的图像会被截断,按钮和工具栏走动为好。我一直在寻找了几天的答案,进出口新的计算器,所以我希望我有跟随所有规则和我在正确的部分问题。

Recently I had upgraded to Xcode 5 and opened a project that had been created in Xcode 4.6.1. All the images and buttons had moved around so I went back and re-arranged everything. Now a new problem has occurred, when I switch from the 4" simulator to 3.5 inch images get cut off, buttons and toolbars move around as well. I been searching for an answer for days and Im new to stackoverflow so I hope I have follow all rules and my question in the correct section.

在项目几点注意事项:

使用自动布局,尺寸 - 推断,方向 - 推断

Using Autolayout, Size - Inferred, Orientation - Inferred

将打开:默认5.0,项目部署目标7.0,查看:的iOS 7.0和更高版本

Opens in: Default 5.0, Project Deployment Target 7.0, View as: iOS 7.0 and Later

推荐答案

这听起来像你没有对你的对象的任何约束。您将需要添加它们,以便自动布局工作,你想要的方式。

It sounds like you do not have any constraints on your objects. You will need to add them in order for autolayout to work the way you want.

如果你不想要以编程方式添加约束比你可以简单地在IB将它们添加到对象。

If you are not wanting to add constraints programmatically than you can simply add them to objects in IB.

点击要添加约束对象:

编辑 - >解决问题的自动布局 - >添加缺少的约束

Editor -> Resolve Autolayout Issues -> Add Missing Constraints.

这会给你一个很好的地方开始,你可以进一步从那里调整的约束。

That will give you a good place to start with and you can further adjust the constraints from there.

这篇关于X code5(3.5英寸屏幕4英寸)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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