R – defaulting iPhone numeric keypad

iphonekeyboard

Hi can anybody tell me how to show a default numeric keypad on iPhone rather than a character keypad.

Best Answer

[myTextField setKeyboardType:UIKeyboardTypeNumberPad];