What does “Constrain to margins” mean in Interface Builder in Xcode 6.0.1

前端 未结 1 1067
北荒
北荒 2021-02-14 00:15

I understand the purpose of \"Spacing to the nearest neighbor\" (in Xcode 6, more especially in Interface Builder) but what is the point of \"Constrain to margins\"?

相关标签:
1条回答
  • 2021-02-14 00:56

    iOS8 introduces a new property of the UIView: layoutMargins. Shortly: these 4 values (a UIEdgeInsets) represent the margins of the view: its subviews can now be positioned relative to these margins, or the old way relative to the sides. I wrote an article about this in my blog with more details, let me know if it is clear and if you have additional doubts.

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