I would like to ask is it possible to translate the UIButton position?
How? Anyone?
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.
You can get the frame of the button using “frame” property. This returns a CGRect object which basically has your buttons x-coord, y-coord, width and height.
Based on where you want to translate your button, calculate the new x-coord and y-coord.
Then do the following: