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