How to set the UIImageView’s layer position relative to sibling views?
I mean like the swapDepths() / setChildIndex() in flash
many thanks for reading
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.
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;