UIViewController.DisablesAutomaticKeyboardDismissal Property

Definition

If true, input view will remain on-screen even when non-input control is tapped.

public virtual bool DisablesAutomaticKeyboardDismissal { [Foundation.Export("disablesAutomaticKeyboardDismissal")] get; }
member this.DisablesAutomaticKeyboardDismissal : bool

Property Value

The default value is false unless using a modal form sheet, in which case it is true.

Attributes

Remarks

The input view (generally the system keyboard) typically disappears when the application user taps on a control which does not reqire the input view. Application developers can override this method so that it returns true, leaving the input view on the screen in that situation.

If the ModalPresentationStyle property is set to FormSheet, the default value for this method is true. That is, by default the system leaves the input view on-screen when presenting modal forms.

Applies to

See also

  • <xref:UIKit.UIModalPresentationStyle.UIModalPresentationStyle.FormSheet>