Xib: 怎样一次全部更新 nib 里面的 黄色约束。

Xib: 怎样一次全部更新 nib 里面的 黄色约束。
xib Misplaced views

点击 xib 里面的 画布, Command + Option + =

In Xcode 5 the position of views on the canvas does not update when constraints are applied. Thus, it is possible to have constraints that specify a different position for the view than you see it in Interface Builder. You can correct this by pressing Command + Option + = or selecting "Update Frames" in the |-•-| menu (I think it looks like a tie fighter).

Update for Xcode 8: The "Update Frames" command now has its own button. It's located just to the left of the Stack View / Alignment / Constraints buttons and looks like a reload arrow surrounded by corner brackets:

StackOverView

你可能感兴趣的:(Xib: 怎样一次全部更新 nib 里面的 黄色约束。)