UITextField
has a property (keyboardType
) that can be useful to set the keyboard you need.
aTextField.keyboardType = UIKeyboardTypeDefault;
keyboardType can be one of the following:
UIKeyboardTypeDefault
UIKeyboardTypeASCIICapable
UIKeyboardTypeNumbersAndPunctuation
UIKeyboardTypeURL
UIKeyboardTypeNumberPad
UIKeyboardTypePhonePad
UIKeyboardTypeNamePhonePad
UIKeyboardTypeEmailAddress
You can find screenshot at this address:
http://gprince.yolasite.com/index/uikeyboardtype
Anyway, you won't get the top bar with 3 buttons if you don't show your keyboard in UIWebView
. A workaround is to add a UIView, containing the bar you want, on top of your keyboard, but your app could be rejected. There are many discussion on the internet about this issue.
My personal solution is to add a UIView to the NIB view and show it at the same time my keyboard shows up, without adding it to the keyboard directly.