Format a UITextField for currency
I have a UITextField on my aplication that receives only numeric input from the user. This numeric input represents currency and have the default value of 0.00. I would like to create something like a mask to format the UITextField as the user enter the numbers. For example: 9 becomes $0,09 99 becomes $0,99 999 becomes $999,99 The code below works great, but as I'm using integer and float values the app will eventually display wrong values afeter a certain point. For example: 999999999 becomes 100000000 That happens because flot and integer aren't precise enough and NSDEcimalNumber should be