共用方式為


UISearchBar.UISearchBarAppearance.SetImageforSearchBarIcon 方法

定義

設定要用於指定 UISearchBarIcon 類型和 UIControlState 的影像。

[Foundation.Export("setImage:forSearchBarIcon:state:")]
public virtual void SetImageforSearchBarIcon (UIKit.UIImage iconImage, UIKit.UISearchBarIcon icon, UIKit.UIControlState state);
abstract member SetImageforSearchBarIcon : UIKit.UIImage * UIKit.UISearchBarIcon * UIKit.UIControlState -> unit
override this.SetImageforSearchBarIcon : UIKit.UIImage * UIKit.UISearchBarIcon * UIKit.UIControlState -> unit

參數

iconImage
UIImage
屬性

適用於