How do I enable the ".com" key on the keyboard for UITextField? As an example, this key shows up when user clicks on the navigation item for the apple browser. Is there a web-specific keyboard layout I could specify?
+3
A:
This should do the trick: (replace "myTextField" with the name of your text field, of course):
myTextField.keyboardType = UIKeyboardTypeURL;
See also: the UITextInputTraits protocol, which controls things like keyboard layout and autocorrection.
igul222
2010-05-03 03:04:58