UIViewController.DisablesAutomaticKeyboardDismissal Property


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

[get: Foundation.Export("disablesAutomaticKeyboardDismissal")]
public virtual bool 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.



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>