I know you can change the origin/anchor point of a UIKit object in interface builder, bout how can I do this programmatically? Or do I have have to simply change position coordinates to be appropriate to the default anchor point?
Share
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.
UIViews do not have the concept of an anchor point (unlike CALayers). You can position them using the
frameproperty or thecenterproperty. Interface Builder fakes the anchor point and actually stores the UIView’s frame coordinates in the nib file.