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
属性

适用于