How to select background views in a storyboard or

2019-03-23 09:00发布

If I select a view with my mouse in a storyboard or xib, Xcode will select the front most view. I know that I can select the other views in the document outline, but if I want to grab a background view to move it with my mouse, the front most view gets selected again when I click in the storyboard.

I think there is a way to cycle through the views and select the ones in the back by holding down on some keys, but I can't find what it is. Does anyone know?

I'm using Xcode 4.6. I know that I can also move background views using the size inspector, but I'm looking for a way to position them with my mouse.

3条回答
姐就是有狂的资本
2楼-- · 2019-03-23 09:09

One way is to use the jump bar at the top of the editor. It's the control that shows the path of objects leading to the current selection.

Another way is to press control+shift and left click (or shift right click) an item. That shows you all of the objects under the mouse in a menu, and allows you to disambiguate the one you meant to select.

查看更多
Viruses.
3楼-- · 2019-03-23 09:13

Select the view from the menu on the left of interface builder.

enter image description here

查看更多
地球回转人心会变
4楼-- · 2019-03-23 09:16

The good news: Place your mouse on the overlapped images, press and hold shift and right click the mouse. You should see the list of objects, select your object in the back. You can resize as you wish.

The bad news: you can only use the cursor arrows if you want to move it!

查看更多
登录 后发表回答