Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to assign different z-order to my Interface Builder objects?

How can I change the z-value, or just send to back or to front the objects in Interface Builder?

i.e. I would like to move to front the "Label" in this View:

example image

like image 891
aneuryzm Avatar asked May 08 '11 11:05

aneuryzm


2 Answers

You need to reorder then in Interface Builder. It seems like you're using Xcode 4. So, first, click on the arrow in the bottom left corner of IB to expand the side panel:

enter image description here

Next, click and drag the views that you'd like to rearrange.

enter image description here

The lower an item is on the list from the top of the list, the higher its "z-index".

like image 54
Moshe Avatar answered Nov 08 '22 18:11

Moshe


with that object selected, goto (menu) Editor>Arrangement> . There will be 4 options with activated appropriate options.

like image 35
mahdee Avatar answered Nov 08 '22 18:11

mahdee