I have UITextfield that is set to show only 1 character upon initialization, however I use constraints to make the field be able to expand as needed.
My constraint:
@"H:[txtField(<=80)]-14-|
When I set the textField via the text attribute it resizes perfectly, however when I try and enter it in via the keyboard the best I can get is to use sizeToFit inside the shouldChangeCharactersInRange…which kind of works but instead of the dollar amount moving inward to the left on the iphone it moves outward to the right and off the screen.
How would I make it move inward to the left?
I ended up using this little bit I found on StackOverflow in the
shouldChangeCharactersInRange
double currentValue;