When you are working on the Interface Builder, you will find it hard to select a particular control when lot of controls are near by it. Also it is hard to select a control which is beneath another control.
For e.g., if you have a text field over a UIView, then you can't select the UIView directly sometimes. You may to select that view from the Document Outline.
Instead, you can use this shortcut which is provided with the XCode.
Hold the "Shift" button, and right click over the control.
(Or Hold the "Shift" and the "Option" button and click over the control)
Now XCode will list all the subviews and super views present at the clicked location, like in the above image. You can easily select your desired control from this menu. This is like selecting a layer in the Photoshop.
No comments:
Post a Comment