XCode: Moving UI-elements in storyboard editor
Asked Answered
F

1

14

Is it possible to lock or freeze elements in storyboard editor so that they are ignored, when clicking and dragging?

My problem is that I have several elements underneath two big UIViews that cover the whole window. So in order to for example move a button underneath them I first have to move the big views out of the way, move the button, then move them back.

Is there a better way?

When I select the element in the tree-view on the left, it gets deselected as soon as I click on the storyboard. Perhaps there's a keyboard shortcut to keep the selection while dragging?

Faints answered 20/11, 2012 at 10:35 Comment(0)
H
14

There isn't I'm afraid, at least not that I've ever been aware of.

You can use the object navigator / tree-view on the left to select your items, then you can move objects around using the x/y/w/h properties on the size inspector.

Another solution could be to set the items you don't want to drag around to hidden while you're dragging other elements around.

Heraclitus answered 20/11, 2012 at 10:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.