I have a application that allows the user to tap and move a UITextField around the screen. Is there a way to save the current postion of the UITextField?
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.
Somewhere in your header file, you want to make a CGPoint that stores the current location. You also want a method to save the current location of the UITextField:
When you want to save the current position:
[self saveCurrentPosition];saveCurrentPosition should look something like this: