问题
When working with UI items in Interface Builder is there any way to lock an item's position once you are happy with its placement? I only ask as I keep slightly dragging items when selecting them for edits resulting in having to go back and tweak positions.
回答1:
Select Identity Inspector (Cmd 4) and select "All Properties" or "Localizable Properties" in the Lock menu.
回答2:
In Xcode 4.2 it is under "Show the Identity Inspector", there under Identity -> Lock -> All Properties
See Image:

every time you try to edit a locked object, Xcode show a lock :-)
PS: under "Show the File inspector" you are able to reset all locks:

回答3:
In XCode 4.5 and above, the Lock option is under the Document group.

来源:https://stackoverflow.com/questions/2268049/interface-builder-lock-item-positions