Xcode5 ( 3.5" screen to 4 inch )

眉间皱痕 提交于 2019-12-02 21:46:08

问题


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.

Few notes on the project:

Using Autolayout, Size - Inferred, Orientation - Inferred

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


回答1:


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.

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

Click the object you want to add constraints to:

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.



来源:https://stackoverflow.com/questions/19037388/xcode5-3-5-screen-to-4-inch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!