Shadrax
Shadrax

Reputation: 57

Limit to single decimal point

I'm writing an iPhone app where the user is requested to input decimal a value. I would like to limit user to inputing a single decimal place. i.e. stopping the user entering something meaningless like 10.10.2.

Any suggestions.

Many thanks in advance.

R

Upvotes: 1

Views: 618

Answers (1)

woodleader
woodleader

Reputation: 923

Use the UIKeyboardTypeDecimalPad So the User can only enter Numbers and only one decimal point!

http://blog.devedup.com/index.php/2010/03/13/iphone-number-pad-with-a-decimal-point/

Upvotes: 2

Related Questions