I want to select all text from the UITextField selected when i start editing. I tried the below code but this doesn’t work.
[txt selectAll:self];
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.
Please check where you have placed it… Try putting the code above in
And also txt must be UITextField. Also do not forget to set the delegate for txt as
where you have declared it and add UITextFieldDelegate in .h as
This will definitely work….It worked for me..