How to set the UIImageView's layer position relative to sibling views?
I mean like the swapDepths() / setChildIndex() in flash
many thanks for reading
How to set the UIImageView's layer position relative to sibling views?
I mean like the swapDepths() / setChildIndex() in flash
many thanks for reading
It would be useful to describe what you are attempting in absolute terms, not by referring to another framework people may not be familiar with (particularly since "Layer" has its own special meaning in Cocoa.
If by "layer" you mean its position relative to sibling views then you can use the following functions.
bringSubviewToFront
sendSubviewToBack
exchangeSubviewAtIndex
Note that these are called on the PARENT of the UIView / UIImageView you wish to reposition. E.g. this would bring the imageview infront of its siblings;
[imageView.superview bringSubviewToFront: imageView];