UISearchBar.SetImageforSearchBarIcon Method

Definition

Sets the icon for the specified search bar icon type and control state.

[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

Parameters

iconImage
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