views:

292

answers:

2

I have 2 UIImageViews, IMG1 and IMG2 . Somesomes I want IMG1 to appear above IMG2 , and at other times I want IMG2 to appear above IMG1. How do I do this ?

+3  A: 

Try using

[self.view bringSubviewToFront:myImageView];
John Feminella
+3  A: 

Also,

[self.view exchangeSubviewAtIndex:imageView1Index withSubviewAtIndex:imageView2Index];

might do this, if you know the indices of the respective views.

Brad Larson