Instance Property

imageEdgeInsets

The inset or outset margins for the rectangle around the button’s image.

Declaration

@property(nonatomic) UIEdgeInsets imageEdgeInsets;

Discussion

Use this property to resize and reposition the effective drawing rectangle for the button image. You can specify a different value for each of the four insets (top, left, bottom, right). A positive value shrinks, or insets, that edge—moving it closer to the center of the button. A negative value expands, or outsets, that edge. Use the UIEdgeInsetsMake function to construct a value for this property. The default value is UIEdgeInsetsZero.

This property is used only for positioning the image during layout. The button does not use this property to determine intrinsicContentSize and sizeThatFits:.

See Also

Configuring Edge Insets

contentEdgeInsets

The inset or outset margins for the rectangle surrounding all of the button’s content.

titleEdgeInsets

The inset or outset margins for the rectangle around the button’s title text.