spnj83
spnj83

Reputation:

UIImageViews - layers

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 ?

Upvotes: 0

Views: 621

Answers (2)

Brad Larson
Brad Larson

Reputation: 170309

Also,

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

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

Upvotes: 3

John Feminella
John Feminella

Reputation: 311436

Try using

[self.view bringSubviewToFront:myImageView];

Upvotes: 3

Related Questions