Contents

imageView

The button’s image view.

Declaration

var imageView: UIImageView? { get }

Discussion

Although this property is read-only, its own properties are read/write. Use these properties to configure the appearance and behavior of the button’s view. For example:

UIButton *button                   = [UIButton buttonWithType: UIButtonTypeSystem];
button.imageView.exclusiveTouch    = YES;

The imageView property returns a value even if the button has not been displayed yet. The value of the property is nil for system buttons.

See Also

Getting the current state