Type Method

imageNamed:

Creates an image object whose contents are taken from the specified name.

Declaration

+ (instancetype)imageNamed:(NSString *)name;

Parameters

name

The name of an image to load. The system looks for a file with the specified name in the app extension’s bundle. For PNG images, you may omit the filename extension. For all other file formats, always include the filename extension.

Return Value

A new image object or nil if the specified image could not be created.

Discussion

Use this method to load images from the bundle of an Intents extension or Intents UI extension. This method loads the variant of the image that is best suited for display on the screen.

See Also

Creating an Image Object

+ imageWithUIImage:

Creates an image object from an existing UIKit image.

+ imageWithCGImage:

Creates an image object from an existing Core Graphics image.

+ imageWithURL:

Creates an image object from the image at the specified URL.

+ imageWithImageData:

Creates an image object using the specified data.

+ imageWithURL:width:height:

Creates an image object from the data at the specified URL and sizes it to the desired width and height.