UISearchBar.SetSearchFieldBackgroundImage(UIImage, UIControlState) Method

Definition

Sets the UIImage used as the background for the search text field for the specified state.

[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

Parameters

backgroundImage
UIImage

To be added.

This parameter can be null.

Attributes

Remarks

This member participates in the UIAppearance styling system. See the Appearance property and the AppearanceWhenContainedIn(Type[]) method.

Applies to