Interface Builder Lock Item Positions?

ぃ、小莉子 提交于 2019-12-18 03:04:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!