Format number as I type Expand this post

Posted by conorhiggins on Stack Overflow See other posts from Stack Overflow or by conorhiggins
Published on 2010-06-08T09:19:40Z Indexed on 2010/06/08 9:22 UTC
Read the original article Hit count: 301

Filed under:
|
|
|
|

Hi I am working on an app at the moment that requires number input to be formatted as the textfield changes as well as perform a calculation. I have the text fields set up so that as the user types notifications are passed out and a calculation is performed. However what I need to do now is format the text to be in this style: €1,000,000 rather than 1000000. I have this working for the output of the calculation already but everytime I try to apply it to the input text the simulator seems to crash or at least freezes for a while. I'd imagine its a simple enough fix.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode