Initializes and returns the image object with the contents of the specified file.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The path to the file. This path should include the filename extension that identifies the type of the image data.
UIImage object, or
nil if the method could not find the file or initialize the image from its contents.
This method loads the image data into memory and marks it as purgeable. If the data is purged and needs to be reloaded, the image object loads that data again from the specified path.
Creating and Initializing Image Objects
Creates and returns an image object that uses the specified image data.
Creates and returns an image object that uses the specified image data and scale factor.
Creates and returns an image object representing the specified Quartz image.
Initializes and returns the image object with the specified data.
Initializes and returns the image object with the specified Quartz image reference.
Initializes and returns an image object with the specified Core Image object.