.
Hello,
In Interface builder it really easy to set the order of items, as in the layers by dragging them one above the other.
I am not being successful to replicate that in code.
What is the line I need to add to have a similar effect?
Cheers
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.
To quote another post, there are many useful methods for this exact purpose:
Their names are fairly self explanatory. Of particular interest to you might be insertSubview:AtIndex, insertSubview:belowSubview (or above), as well as the bringSubviewToFront and sendSubviewToBack. These will allow you to build your view without having to add them in any specific order.