Sometimes we want that user should compulsorily enter numbers only in Phone Number TextField then in that case you can specify keyboard type property (Basic scenario). Keyboard Type is used to take the input from the from keyboard in specified format.
UIKeyboardTypeNumberPad is used for PIN input and shows a numeric keyboard.
emailTextField.keyboardType = UIKeyboardTypeNumberPad;
UIKeyboardTypeNumberPad is Keyboard is optimized for entering phone numbers.
emailTextField.keyboardType = UIKeyboardTypePhonePad;
UIKeyboardTypeEmailAddress is Keyboard is optimized for entering email Address.
emailTextField.keyboardType = UIKeyboardTypeEmailAddress;
UIKeyboardTypeDecimalPad is used for entering decimal numbers.
emailTextField.keyboardType = UIKeyboardTypeDecimalPad;
Keyboard is optimized for URL entry. Mostly used Keyboard types are exaplined above.
Keyboard is optimized for twitter with @ and # symbols.