iPhone Keyboard type – UIKeyboardType

UIKeyboardType
The type of keyboard to display for a given text-based view. And it is very useful, for example:- I want to enter URL address, must of the website we need to add .com (hold to get more options like .net) at end.
iPhone Keyboard type - UIKeyboardType
typedef enum {
UIKeyboardTypeDefault,
UIKeyboardTypeASCIICapable,
UIKeyboardTypeNumbersAndPunctuation,
UIKeyboardTypeURL,
UIKeyboardTypeNumberPad,
UIKeyboardTypePhonePad,
UIKeyboardTypeNamePhonePad,
UIKeyboardTypeEmailAddress,
UIKeyboardTypeDecimalPad,
UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable
} UIKeyboardType;

UIKeyboardTypeDefault
Use the default keyboard for the current input method.

UIKeyboardTypeASCIICapable
Use a keyboard that displays standard ASCII characters. ifwe hold on the key we will get more optional keys

UIKeyboardTypeNumbersAndPunctuation
Use the numbers and punctuation keyboard.

UIKeyboardTypeURL
Use a keyboard optimized for URL entry. This type features “.”, “/”, and “.com” prominently.

UIKeyboardTypeNumberPad
Use a numeric keypad designed for PIN entry. This type features the numbers 0 through 9 prominently. This keyboard type does not support auto-capitalization.

UIKeyboardTypePhonePad
Use a keypad designed for entering telephone numbers. This type features the numbers 0 through 9 and the “*” and “#” characters prominently. This keyboard type does not support auto-capitalization.

UIKeyboardTypeNamePhonePad
Use a keypad designed for entering a person’s name or phone number. This keyboard type does not support auto-capitalization.

UIKeyboardTypeEmailAddress
Use a keyboard optimized for specifying email addresses. This type features the “@”, “.” and space characters prominently.

UIKeyboardTypeDecimalPad
Use a keyboard with numbers and a decimal point. Available in iOS 4.1 and later.

UIKeyboardTypeAlphabet
Deprecated. Use UIKeyboardTypeASCIICapable instead.

We can apply this keyboardType Xcode..

Apply keyboard attribute in Xcode

Check this post about windows phone keyboard : Windows Phone InputScope and keyboard layout

we can get more details here http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITextInputTraits_Protocol/Reference/UITextInputTraits.html#//apple_ref/doc/c_ref/UIKeyboardTypeDefault

  • AlmaKMorgenstern

    I’m glad that you shared this helpful info with us,keep doing your great job.

  • Andrew Carroll

    Fantastic blog, very insightful and helpful. I run a blog too somewhat similar to this. I write about apps on the itunes store. ipod-app-reviews.com is my website, ive worked hard on it and would appreciate it if you could take a look, maybe it\’s not as wonderful as this website but im trying.

  • Cathy

    Great read , I am going to spend more time researching this topic

  • Racedo

    Hey There. I found your blog using msn. This is a really well written article. I will be sure to bookmark it and come back to read more of your useful information. Thanks for the post. I will certainly return.

  • Pingback: Windows Phone InputScope and keyboard layout « Share Our Ideas()