Ok, so I've been looking into this, and I think NSFormatter may be what I need to get the job done. I've looked through the docs, but they are a little overwhelming!
My new question is, is there a setting I can set NSFormatter to to force the input number to an X.xx decimal, BUT without the user typing the '.'? What I want is for all of the numbers to be pushed to the right.
Like so:
Code:
User types '1';
Formatter, populate UITextfield with: 0.01;
User types '2';
Formatter, populate UITextfield with: 0.12;
User types '4';
Formatter, populate UITextfield with: 4.12;
User deletes '1';
Formatter, populate UITextfield with: 0.42;
etc?
Basically I want the user to enter a dollar amount, with cents, but I only want them to have access to the 0-9 numpad.
Thanks!
- Josh