Share via


UISearchBar.SetScopeBarButtonBackgroundImage(UIImage, UIControlState) Method

Definition

Sets the image to be used as the scope bar's background for the specified UIControlState.

[Foundation.Export("setScopeBarButtonBackgroundImage:forState:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void SetScopeBarButtonBackgroundImage(UIKit.UIImage? backgroundImage, UIKit.UIControlState state);
[<Foundation.Export("setScopeBarButtonBackgroundImage:forState:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SetScopeBarButtonBackgroundImage : UIKit.UIImage * UIKit.UIControlState -> unit
override this.SetScopeBarButtonBackgroundImage : UIKit.UIImage * UIKit.UIControlState -> unit

Parameters

backgroundImage
UIImage
Attributes

Applies to