美文网首页
Xib: 怎样一次全部更新 nib 里面的 黄色约束。

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

作者: plantAtree_dAp | 来源:发表于2017-02-14 10:42 被阅读0次

    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 里面的 黄色约束。

          本文链接:https://www.haomeiwen.com/subject/snrxwttx.html