Alex Rivera | Logout

Is there a way of setting some kind of z-index for z-position of UIImageView objects?

Asked 2009-05-05T17:35:30.027
10

I'm building up a grid of images, and I start at the top, creating UIImageView objects all over the place. Now I want that they overlap a little bit, but the last ones I draw are the ones most on top. I'd like to set the z-position programmatically, so that the first ones I draw will be the ones most on top.

Edit
Report

1 Answer

21

instead of using insertSubiew you can try:

- (void)bringSubviewToFront:(UIView *)view
- (void)sendSubviewToBack:(UIView *)view
answered 2010-11-28T22:35:01.597

Your Answer