共用方式為


UISearchBar.UISearchBarAppearance.SetSearchFieldBackgroundImage 方法

定義

設定所指定 UIControlState 搜尋欄位的背景影像。

[Foundation.Export("setSearchFieldBackgroundImage:forState:")]
public virtual void SetSearchFieldBackgroundImage (UIKit.UIImage backgroundImage, UIKit.UIControlState state);
abstract member SetSearchFieldBackgroundImage : UIKit.UIImage * UIKit.UIControlState -> unit
override this.SetSearchFieldBackgroundImage : UIKit.UIImage * UIKit.UIControlState -> unit

參數

backgroundImage
UIImage
屬性

適用於