I am working on an iOS app that requires the user to enter a dollar amount. It needs to allow them to enter dollars and cents with a max value of $9999.99
I want it to work like this: there is a textfield that displays: "$0.00" to type $5.25 the input will change with each key press. so it would look like this: '5' is pressed, display: $0.05 '2' is pressed, display: $0.52 '5' is pressed, display: $5.25
I have tried to make this work a number of different ways but all present the problem. Using NSNumberformatter does not work correctly. Using a link list or array will not work if the user presses backspace, and I really do not want to implement a stack as I fear it will be too time consuming. Please advise on how I should approach this problem. Thanks