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:

Comments
Post a Comment