AppleImageAsset - UBogun/Xojo-iosLib GitHub Wiki

Inherits from AppleObject
Memory leak check: not yet done.
Status: complete
iOS 8 and above only!

A UIImageAsset object is a container for a collection of images that represent multiple ways of describing a single piece of artwork. A common use case for UIImageAsset is the grouping of multiple images of the same item at different display scales.

Constructor

This class carries no constructor. An imageAsset is created when you load UIImages/AppleImages.

Methods

Image (TraitCollection As AppleTraitCollection) As AppleImage: Returns the image that is registered to an image asset with a specified trait collection.

RegisterImage (Image As AppleImage, TraitCollection As AppleTraitCollection): Associates an image with the trait collection and registers the image to an image asset.

UnregisterImage (TraitCollection As AppleTraitCollection): Unregisters the image associated with the trait collection.