jeudi 26 février 2015

iOS - How to type in a decimal number in textbox without first entering a 0 first?


Vote count:

0




I'm finishing up a simple iOS8 app written in SWIFT which involves numbers being entered in at times. Sometimes the numbers need to be decimals and I noticed that unless I enter a 0 first before the decimal point, the decimal button won't work and nothing will be inputted into the text box.


I was thinking about just making the textbox start with 0, that way the user can just start typing in a decimal without have to enter in 0 by themselves first. I'm hoping there is a simple function that I can just use to solve this problem.


Thanks



asked 31 secs ago







iOS - How to type in a decimal number in textbox without first entering a 0 first?

Aucun commentaire:

Enregistrer un commentaire