I need to set limited width of text in my UITextField, because I put button on top of that UITextField
look at image:

how that can be done?
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 may need to subclass the UITextField and override editingRectForBounds: method. Try something like this..Of course adjust values accordingly.
Accept this answer if it’s the solution to your problem.