Edytuj

Udostępnij za pośrednictwem


UISearchBar.SetShowsCancelButton(Boolean, Boolean) Method

Definition

Sets the display state of the cancel button, optionally animating the change.

[Foundation.Export("setShowsCancelButton:animated:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void SetShowsCancelButton (bool showsCancelButton, bool animated);
abstract member SetShowsCancelButton : bool * bool -> unit
override this.SetShowsCancelButton : bool * bool -> unit

Parameters

showsCancelButton
Boolean
animated
Boolean
Attributes

Applies to