How do you push the Xcode interface constructor?

I have an idea that I want to push a few pixels, but I cannot select it in any way, which allows me to push. The easiest way to select it is to click its name in the list of objects on the left:

enter image description here

But using the arrow keys just moves the selection in this list up and down, choosing different things.

If I actually click the view in the preview window, it ultimately selects something behind it (there is a full-size background image that is selected no matter what I click on).

If I select a name in the list of objects and press Tab (thinking to change the focus to the layout panel), it simply enters the name editing mode (?!). The Tabs tab never focuses several times on the layout bar:

enter image description here

Seriously, this interface is corrupted. How to select an object to push it using the arrow keys? Is there any way?

+6
source share
2 answers

Well, I figured it out ... at least one way, just experimenting with all possible combinations of modifiers. :) It turns out that if you hold Shift and Right-Click in the layout (or Ctrl-Shift-Click), you get a menu of all objects under the cursor:

enter image description here

And, fortunately, choosing one of them allows you to focus the layout panel so that you can actually push objects. Still not particularly intuitive, but it works!

+8
source

You must continue to click the object until IB selects it.

If you have this view hierarchy:

View 1 View 2 View 3 

and click "View 3" in the editor (not in the list on the left). IB will select the highest ancestor (species 1). View 1 will also be highlighted in the editor. When you click View 3 again, the next view will be selected down the hierarchy (View 2). On the third click on view 3, view 3 will be selected.

It may seem unintuitive, but it really makes sense. You want to be able to select the parent view, even if it is completely covered by its subviews. Therefore, IB first selects the parent.

0
source

Source: https://habr.com/ru/post/944241/


All Articles