imageWithContentsOfFile:
Creates and returns an image object by loading the image data from the file at the specified path.
Declaration
+ (UIImage *) imageWithContentsOfFile:(NSString *) path;Parameters
- path:
The full or partial path to the file.
Return Value
A new image object for the specified file, or nil if the method could not initialize the image from the specified file.
Discussion
This method does not cache the image object.
See Also
Creating and initializing image objects
imageWithData: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