Compartir a través de


UIButton.SetBackgroundImage(UIImage, UIControlState) Método

Definición

Establece la imagen de fondo para el estado de botón especificado.

[Foundation.Export("setBackgroundImage:forState:")]
public virtual void SetBackgroundImage (UIKit.UIImage image, UIKit.UIControlState forState);
abstract member SetBackgroundImage : UIKit.UIImage * UIKit.UIControlState -> unit
override this.SetBackgroundImage : UIKit.UIImage * UIKit.UIControlState -> unit

Parámetros

image
UIImage

La imagen de fondo que se va a establecer, use null para borrarla.

Este parámetro puede ser null.

forState
UIControlState
Atributos

Comentarios

Este miembro participa en el sistema de UIAppearance estilos. Vea la Appearance propiedad y el AppearanceWhenContainedIn(Type[]) método .

Se aplica a