Share via


UISearchBar.SetImageforSearchBarIcon Method

Definition

Sets the image to be used for the specified UISearchBarIcon type and UIControlState.

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

Parameters

iconImage
UIImage
Attributes

Applies to