UIKit.UIButton.SetBackgroundImage Method
Sets the background image for the specified button state.

Syntax

[Foundation.Export("setBackgroundImage:forState:")]
public virtual void SetBackgroundImage (UIImage image, UIControlState forState)

Parameters

image

The background image to set, use null to clear it.

This parameter can be null.

forState
Documentation for this section has not yet been entered.

Remarks

This member participates in the UIKit.UIAppearance styling system. See the UIButton.Appearance property and the UIButton.AppearanceWhenContainedIn method.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0