How can I adjust the "z"-positions of objects (e.g. sending UIImageView
s to the front/back) in the integrated interface builder in Xcode?
Just to give a clean, up-to-date answer to this:
Select an interface object, then "Editor | Arrange | Send to back/front/etc", OR
Select the window object, then click on 'Window' above the interface editor and select the objects it contains
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
If the option to send to front/back is greyed out, try double-clicking the object to select it.
Alternatively, the objects are listed from back to front in the order that they appear in the object browser list.
I know originally, this question was for Xcode 4, but it is linked from a Google search.
In Xcode 5, 6, and 7, you can still go to the Editor menu and select and move the items around.
But you can also rearrange by simply changing the order in the document outline.
They're in reverse z-index order: the top of the list is the back of the stack, the bottom of the list is the front. Simply drag your UI item to the bottom to bring it to the front.
Found it: Click on the object you want to move and in the menubar, select Editor > Arrangement
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With