imageWithData:
Creates and returns an image object that uses the specified image data.
Declaration
+ (UIImage *) imageWithData:(NSData *) data;Parameters
- data:
The image data. This can be data from a file or data you create programmatically.
Return Value
A new image object for the specified data, or nil if the method could not initialize the image from the specified data.
Discussion
This method does not cache the image object.
See Also
Creating and initializing image objects
imageWithContentsOfFile:imageWithData:scale:imageWithCGImage:imageWithCGImage:scale:orientation:imageWithCIImage:imageWithCIImage:scale:orientation:init(contentsOfFile:)init(data:)init(data:scale:)init(cgImage:)init(cgImage:scale:orientation:)init(ciImage:)init(ciImage:scale:orientation:)UIImageReaderUIImageReaderConfiguration