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.