Xcode5 ( 3.5" screen to 4 inch )

前端 未结 1 1065
伪装坚强ぢ
伪装坚强ぢ 2021-01-27 15:24

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 everythi

相关标签:
1条回答
  • 2021-01-27 15:57

    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.

    0 讨论(0)
提交回复
热议问题