iOS Guides | Samples

MonoTouch.UIKit.UIInputView Class

A UIView that matches the appearance of the system keyboard.

See Also: UIInputView

Syntax

[MonoTouch.Foundation.Register("UIInputView", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 7, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.WatchOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public class UIInputView : UIView, IDisposable

Remarks

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 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 (Notifications.ObserveWillShow, Notifications.ObserveDidShow, Notifications.ObserveWillHide, Notifications.ObserveDidHide ) will continue to be sent for custom input views. The UIKeyboardEventArgs.Frame value in those methods accounts for both the UIInputView and the UITextField.InputAccessoryView (if one is assigned).

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIInputView are listed below.

See Also: UIView

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

AllowsSelfSizingBoolean.
[read-only]
static
AppearanceUIInputView+UIInputViewAppearance. Strongly-typed property that returns the UIAppearance class for this class.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
InputViewStyleUIInputViewStyle. The blur and tint effects to apply.

Public Methods

static
AppearanceWhenContainedIn(params Type[]) : UIInputView+UIInputViewAppearance
Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.
static
GetAppearance(UITraitCollection) : UIInputView+UIInputViewAppearance
Returns an appearance proxy for the specified traits collection.
static
GetAppearance(UITraitCollection, params Type[]) : UIInputView+UIInputViewAppearance
Returns an appearance proxy for the specified traits when found in the containers containment hierarchy.
static
GetAppearance<T>() : UIInputView+UIInputViewAppearance
Obtains the appearance proxy UIInputViewAppearance for the subclass of UIInputView.
static
GetAppearance<T>(UITraitCollection) : UIInputView+UIInputViewAppearance
Obtains the appearance proxy UIInputViewAppearance for the subclass of UIInputView.
static
GetAppearance<T>(UITraitCollection, params Type[]) : UIInputView+UIInputViewAppearance
Obtains the appearance proxy UIInputViewAppearance for the subclass of UIInputView that has the specified trait collection when the view is hosted in the specified hierarchy.