Trying to format a UITextField to behave like a currency calculator for only numeric input in iOS
I have a UITextField in my application that is supposed to receive only numeric input from the user. This numeric input is supposed to represent currency (i.e. have only two decimal places), have the default value of 0.00 when nothing has been entered. I also would like to have a "$" sign that is on the far left, with the number right aligned, such that the number moves from right to left like such: e.g. when entering the number "1234.56" . 1. $ 0.00 . 2. $ 0.01 . 3. $ 0.12 . 4. $ 1.23 . 5. $ 12.34 . 6. $ 123.45 . 7. $ 1,234.56 . 8. and so on... I have the UITextField right aligned so that it