Instance Property

alignmentRectInsets

The alignment metadata used to position the image during layout.

Declaration

@property(nonatomic, readonly) UIEdgeInsets alignmentRectInsets;

Discussion

You can use the inset values as a hint for specifying the image contents more precisely. For example, if you have a 20 x 20 pixel icon that includes a glow effect, you might set the insets to {{2, 2}, {16, 16}} to indicate the position of the underlying icon without the glow effect.

Objects that incorporate images can use these insets to place the image properly within their content.

See Also

Image Attributes

imageOrientation

The orientation of the receiver’s image.

UIImageOrientation

A value describing the intended display orientation for an image.

flipsForRightToLeftLayoutDirection

A Boolean value that indicates whether the image should flip in a right-to-left layout.

resizingMode

The resizing mode of the image.

UIImageResizingMode

Specifies the possible resizing modes for an image.

duration

Returns the time interval used to display an animated image.

capInsets

The end-cap insets.

symbolImage

A Boolean value indicating whether the image is vector-based.