I have a View and its subview is an array of UIImageView (Let’s say 5). The sequence of my UIImageView as 1-2-3-4-5.
Understand that if i use sendSubviewToBack for 3, the sequence will be 3-1-2-4-5.
How do i send the 3 to one layer down instead of sending it to the most back, eg. (1-3-2-4-5)
You can use
-exchangeSubviewAtIndex:…to swap the order of the two subviews.‘1’ is the index of view #2 and ‘2’ is the index of view #3.