13

I often stack objects in IB/Storyboard it's almost impossible to drag objects that are behind other objects without moving the objects in front. Is there anyway I can move the objects that are already selected but are behind other objects? It always selects the object that's at the top when I try to move it or do I have to bring it to the front and move it and then send it back to the back?

Thanks! Alan

Alan
  • 9,331
  • 14
  • 52
  • 97
  • 1
    Yeah I always run into this issue. So far I have not seen any other solution other then bring it to the front to move it then putting it back. – Jaybit Feb 13 '13 at 17:46
  • boo. wish you could hold down like the control key and it would always drag the object that's selected... Another annoying issue is that if you have a TableView it will try to insert it into the TableViewCell rather than keeping it just ontop of the TableViewCell – Alan Feb 13 '13 at 18:41

3 Answers3

14

Control + Shift + Click on an object in Interface Builder to see a menu of all of the objects under the mouse.

From: https://stackoverflow.com/a/934152/1374512

Community
  • 1
  • 1
nvrtd frst
  • 6,272
  • 4
  • 28
  • 34
8

Still no enough reputations to add comment, so I have to make a comment as an answer.

As @nvrtd mentioned, you can hold Ctrl + Shift and then click to show controls selection popup.

but as @David said, in that way you can only select rather than drag/move using mouse:

That doesn't work for me. I can select it, but can't move it.

my solution:

  1. select the control first
  2. move the control with keyboard arrow keys
laoyur
  • 697
  • 8
  • 15
  • this works! But what about when you need to RESIZE a view that is below another one? – Rod Feb 23 '18 at 12:40
  • 1
    @Rod no good solution yet. maybe you can uncheck the `installed` checkbox temporary for the front view before RESIZE your back view. – laoyur Feb 24 '18 at 12:36
0

You could also change the order of the objects, depending on your design... might be a solution. See SO here.

How to send objects in NIB files to front/back?

user3069232
  • 8,587
  • 7
  • 46
  • 87