Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

How can I adjust the "z"-positions of objects (e.g. sending UIImageViews to the front/back) in the integrated interface builder in Xcode?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
366 views
Welcome To Ask or Share your Answers For Others

1 Answer

Just to give a clean, up-to-date answer to this:

  1. Select an interface object, then "Editor | Arrange | Send to back/front/etc", OR

  2. Select the window object, then click on 'Window' above the interface editor and select the objects it contains

    • This pic shows where to click: enter image description here
  3. Or you can expand the object browser, use the disclosure triangle on the window object, and select from the list there: http://i.imgur.com/041xz.png

  4. If the option to send to front/back is greyed out, try double-clicking the object to select it.

    • Thanks to Bryce Thomas for this suggestion in the comments
  5. Alternatively, the objects are listed from back to front in the order that they appear in the object browser list.

    • Drag an object in the list to the last slot in the list to bring it to the front, for example.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...