Q:

How to set limited width of text in uitextfield

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?

A:

You may need to subclass the UITextField and override editingRectForBounds: method. Try something like this..Of course adjust values accordingly.
- (CGRect)editingRectForBounds:(CGRect)bounds {
      return CGRectInset( bounds , 10 , 10 );
}

Accept this answer if it's the solution to your problem.

