I am setting the UIKeyboardType as UIKeyboardTypeNumberPad on my UITextFields. However, this only allows the user to enter positive integers. I need the user to be able to enter negative or positive integers. Is there a UIKeyboardType that is identical to UIKeyboardTypeNumberPad but also includes the "-" (minus) symbol, and if not is there a way I can create this?
Thanks.
Annoying as it is, there is no such system keyboard available. Other than creating a custom keyboard your best bet is
UIKeyboardTypeNumbersAndPunctuation
, and doing validation to enforce valid numeric entry.