共用方式為


UISearchBar.SetShowsCancelButton(Boolean, Boolean) 方法

定義

設定取消按鈕的顯示狀態,選擇性地以動畫顯示變更。

[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

參數

showsCancelButton
Boolean
animated
Boolean
屬性

適用於