FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
UIImage(Creations) Category Reference

UIImage convinient creations methods. More...

#import <UIImage.h>

Instance Methods

(instancetype) - initWithContentsOfURL:
 Initializes a newly allocated image object initialized with the data from the location specified by URL. More...
 
(instancetype) - initWithContentsOfURL:cachePolicy:
 Initializes a newly allocated image object initialized with the data from the location specified by URL. More...
 
(instancetype) - initWithContentsOfURLRequest:
 Initializes a newly allocated image object initialized with the data the given URL request. More...
 

Class Methods

(instancetype) + imageWithContentsOfURL:
 Returns an image object containing the data from the location specified by a given URL. More...
 
(instancetype) + imageWithContentsOfURL:cachePolicy:
 Returns an image object containing the data from the location specified by a given URL. More...
 
(instancetype) + imageWithContentsOfURLRequest:
 Returns an image object containing the data from the given URL request. More...
 

Detailed Description

UIImage convinient creations methods.

Method Documentation

+ (instancetype) imageWithContentsOfURL: (NSURL *)  URL

Returns an image object containing the data from the location specified by a given URL.

Parameters
URLThe URL from which to read data.
Returns
An UIImage object containing the data from the location specified by URL. The returned object might be different than the original receiver.
See also
+ imageWithContentsOfURL:cachePolicy:
+ (instancetype) imageWithContentsOfURL: (NSURL *)  URL
cachePolicy: (NSURLRequestCachePolicy)  cachePolicy 

Returns an image object containing the data from the location specified by a given URL.

Parameters
URLThe URL from which to read data.
cachePolicyURL cache policy for the image data.
Returns
An UIImage object containing the data from the location specified by URL. The returned object might be different than the original receiver.
See also
+ imageWithContentsOfURL:
+ (instancetype) imageWithContentsOfURLRequest: (NSURLRequest *)  request

Returns an image object containing the data from the given URL request.

Parameters
requestThe URL request from which to read data.
Returns
An UIImage object containing the data from the request specified by request. The returned object might be different than the original receiver.
- (instancetype) initWithContentsOfURL: (NSURL *)  URL

Initializes a newly allocated image object initialized with the data from the location specified by URL.

Parameters
URLThe URL from which to read data.
Returns
An UIImage object initialized with the data from the location specified by URL. The returned object might be different than the original receiver.
See also
- initWithContentsOfURL:cachePolicy:
- (instancetype) initWithContentsOfURL: (NSURL *)  URL
cachePolicy: (NSURLRequestCachePolicy)  cachePolicy 

Initializes a newly allocated image object initialized with the data from the location specified by URL.

Parameters
URLThe URL from which to read data.
cachePolicyURL cache policy for the image data.
Returns
An UIImage object initialized with the data from the location specified by URL. The returned object might be different than the original receiver.
See also
- initWithContentsOfURL:
- (instancetype) initWithContentsOfURLRequest: (NSURLRequest *)  request

Initializes a newly allocated image object initialized with the data the given URL request.

Parameters
requestThe URL request from which to read data.
Returns
An UIImage object initialized with the data from the request specified by request. The returned object might be different than the original receiver.

The documentation for this category was generated from the following file: