UIKit.UIInputView Class
A UIKit.UIView that matches the appearance of the system keyboard.

See Also: UIInputView Members


[Foundation.Register("UIInputView", true)]
public class UIInputView : UIView


Application developers who wish to customize the appearance of the system keyboard can inherit from this class and add appropriate subviews.

To use a custom UIKit.UIInputView, application developers should assign the custom class to the UITextView.InputView property:

C# Example

var textField = new UITextField(new RectangleF(20, 40, 300, 41));
var inputView = new MyCustomInputView(new RectangleF(0, 0, UIScreen.MainScreen.Bounds.Width, 80), UIInputViewStyle.Keyboard);
textField.InputView = inputView;

Notifications relating to keyboard display (UIKit.UIKeyboard.Notifications.ObserveWillShow, UIKit.UIKeyboard.Notifications.ObserveDidShow, UIKit.UIKeyboard.Notifications.ObserveWillHide, UIKit.UIKeyboard.Notifications.ObserveDidHide ) will continue to be sent for custom input views. The UIKeyboardEventArgs.Frame value in those methods accounts for both the UIKit.UIInputView and the UITextField.InputAccessoryView (if one is assigned).

Related content


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