Interface Builder锁定项目位置?

时间:2010-02-15 18:24:02

标签: iphone interface-builder

在Interface Builder中使用UI项目时,如果您对其位置感到满意,有没有办法锁定项目的位置?我只是问我在选择它们进行编辑时会略微拖动项目,导致必须返回并调整位置。

3 个答案:

答案 0 :(得分:31)

选择Identity Inspector( Cmd 4 )并在Lock菜单中选择“All Properties”或“Localizable Properties”。

答案 1 :(得分:16)

在Xcode 4.2中,它位于“Show the Identity Inspector”下, 在身份下 - >锁定 - >所有属性

见图片:

Show the Identity Inspector - Identity - Lock - All Properties

每次尝试编辑锁定的对象时,Xcode都会显示锁定: - )

PS:在“显示文件检查器”下,您可以重置所有锁: Show the File inspector - Reset Locking Controls

答案 2 :(得分:9)

在XCode 4.5及更高版本中,Lock选项位于Document组下。

enter image description here