The Xcode asset catalogue editor supports an Alignment
property for images. It very much seems like this is intended as a mechanism for setting a UIImage
's alignmentRectInsets
, and Apple's Asset catalogue reference strongly suggests this too:
alignment-insets
Dictionary
The insets for alignmentRectInsets in UIImage or for alignmentRect in NSImage. The inset tag can be omitted.
However, when I load images from a catalogue that I've set an Alignment
on with the editor, it don't get an alignment.
I'm loading images using [UIImage imageNamed:]
.
Is this a known bug, or is there some subtlety I am missing?