init(data:)
Initializes and returns the image object with the specified data.
Declaration
init?(data: Data)Parameters
- data:
The data object containing the image data.
Return Value
An initialized UIImage object, or nil if the method could not initialize the image from the specified data.
Discussion
The data in the data parameter must be formatted to match the file format of one of the system’s supported image types.