Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Interface Builder Lock Item Positions?

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.

like image 707
fuzzygoat Avatar asked Feb 15 '10 18:02

fuzzygoat


3 Answers

Select Identity Inspector (Cmd 4) and select "All Properties" or "Localizable Properties" in the Lock menu.

like image 82
Costique Avatar answered Nov 28 '22 23:11

Costique


In Xcode 4.2 it is under "Show the Identity Inspector", there under Identity -> Lock -> All Properties

See Image:

Show the Identity Inspector - Identity - Lock - All Properties

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: Show the File inspector - Reset Locking Controls

like image 32
Flori Avatar answered Nov 28 '22 22:11

Flori


In XCode 4.5 and above, the Lock option is under the Document group.

enter image description here

like image 27
Nicu Surdu Avatar answered Nov 28 '22 23:11

Nicu Surdu