UIKit.UIKeyboardType Enumeration
An enumeration of keyboard types.


public enum UIKeyboardType


In order to change the keyboard appearance, the currently displaying keyboard must be dismissed. This is achieved by having the UIKit.UIControl associated with the keyboard resigning as first responder, changing the keyboard type, and then re-subscribed as the first subscriber, as shown in the following code:

C# Example

void AddKeyboardTypeButton (UIKeyboardType kbType, RectangleF frame)
	  var kbButton = UIButton.FromType (UIButtonType.RoundedRect);
	  kbButton.Frame = frame;
	  kbButton.SetTitle (kbType.ToString (), UIControlState.Normal);
	  View.AddSubview (kbButton);
	  kbButton.TouchUpInside += (sender, e) => {
		    myTextField.ResignFirstResponder ();
		    myTextField.KeyboardType = kbType;
		    myTextField.BecomeFirstResponder ();


Member NameDescription
ASCIICapableDisplays standard ASCII characters.
DecimalPadDisplays numbers and decimal point.
DefaultThe default keyboard for the current input type.
EmailAddressCharacters, an @ symbol, and access to numbers and punctuation.
NamePhonePadCharacters plus access to numbers.
NumbersAndPunctuationNumbers and punctuation.
PhonePadNumbers plus access to #, *, 'pause', and 'wait'.
TwitterCharacters, @ and # keys, and access to numbers and punctuation.
UrlCharacters, '.', '/', and '.com' keys, and access to numbers and punctuation.
WebSearchOptimized for Web search terms and URL entry.


Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: