objective c - Cannot input positive number when using NSNumberFormatter? -


i'm using nsnumberformatter nstextfield make numbers 1.23 display +1.23 , -1.23 -1.23. works fine, until tried input directly text field.

if typed in 1.23 , hit return, form rejected number complaining invalid format. wrong here?

i've set format in ib completely, the format(+) field +0.00, , format(-) field -0.00. i've restricted fraction digits 2, positive prefix + , negative prefix - respectively.

how can fix this?

you can this:

enter image description here


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -