UIButton(WebCache) Category Reference
| Declared in | UIButton+WebCache.h UIButton+WebCache.m |
Tasks
-
– setImageWithURL:forState: -
– setImageWithURL:forState:placeholderImage: -
– setImageWithURL:forState:placeholderImage:options: -
– setImageWithURL:forState:completed: -
– setImageWithURL:forState:placeholderImage:completed: -
– setImageWithURL:forState:placeholderImage:options:completed: -
– setBackgroundImageWithURL:forState: -
– setBackgroundImageWithURL:forState:placeholderImage: -
– setBackgroundImageWithURL:forState:placeholderImage:options: -
– setBackgroundImageWithURL:forState:completed: -
– setBackgroundImageWithURL:forState:placeholderImage:completed: -
– setBackgroundImageWithURL:forState:placeholderImage:options:completed: -
– cancelCurrentImageLoad
Instance Methods
cancelCurrentImageLoad
Cancel the current download
- (void)cancelCurrentImageLoadDeclared In
UIButton+WebCache.hsetBackgroundImageWithURL:forState:
Set the backgroundImageView image with an url.
- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)stateParameters
- url
The url for the image.
- state
The state that uses the specified title. The values are described in UIControlState.
Discussion
The downloand is asynchronous and cached.
Declared In
UIButton+WebCache.hsetBackgroundImageWithURL:forState:completed:
Set the backgroundImageView image with an url.
- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletedBlock)completedBlockParameters
- url
The url for the image.
- state
The state that uses the specified title. The values are described in UIControlState.
- completedBlock
A block object to be executed after the request operation completed. This block has no return value and takes three argument: the requested
UIImageobject, theNSErrorobject describing error that occurred, and anSDImageCacheTypeenum describing the source of the image obtained from.
Discussion
The downloand is asynchronous and cached.
Declared In
UIButton+WebCache.hsetBackgroundImageWithURL:forState:placeholderImage:
Set the backgroundImageView image with an url and a placeholder.
- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholderParameters
- url
The url for the image.
- state
The state that uses the specified title. The values are described in UIControlState.
- placeholder
The image to be set initially, until the image request finishes.
Discussion
The downloand is asynchronous and cached.
Declared In
UIButton+WebCache.hsetBackgroundImageWithURL:forState:placeholderImage:completed:
Set the backgroundImageView image with an url, placeholder.
- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlockParameters
- url
The url for the image.
- state
The state that uses the specified title. The values are described in UIControlState.
- placeholder
The image to be set initially, until the image request finishes.
- completedBlock
A block object to be executed after the request operation completed. This block has no return value and takes three argument: the requested
UIImageobject, theNSErrorobject describing error that occurred, and anSDImageCacheTypeenum describing the source of the image obtained from.
Discussion
The downloand is asynchronous and cached.
Declared In
UIButton+WebCache.hsetBackgroundImageWithURL:forState:placeholderImage:options:
Set the backgroundImageView image with an url, placeholder and custom options.
- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)optionsParameters
- url
The url for the image.
- state
The state that uses the specified title. The values are described in UIControlState.
- placeholder
The image to be set initially, until the image request finishes.
- options
The options to use when downloading the image. @see SDWebImageOptions for the possible values.
Discussion
The downloand is asynchronous and cached.
Declared In
UIButton+WebCache.hsetBackgroundImageWithURL:forState:placeholderImage:options:completed:
Set the backgroundImageView image with an url, placeholder and custom options.
- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlockParameters
- url
The url for the image.
- placeholder
The image to be set initially, until the image request finishes.
- options
The options to use when downloading the image. @see SDWebImageOptions for the possible values.
- completedBlock
A block object to be executed after the request operation completed. This block has no return value and takes three argument: the requested
UIImageobject, theNSErrorobject describing error that occurred, and anSDImageCacheTypeenum describing the source of the image obtained from.
Discussion
The downloand is asynchronous and cached.
Declared In
UIButton+WebCache.hsetImageWithURL:forState:
Set the imageView image with an url.
- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)stateParameters
- url
The url for the image.
- state
The state that uses the specified title. The values are described in UIControlState.
Discussion
The downloand is asynchronous and cached.
Declared In
UIButton+WebCache.hsetImageWithURL:forState:completed:
Set the imageView image with an url.
- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletedBlock)completedBlockParameters
- url
The url for the image.
- state
The state that uses the specified title. The values are described in UIControlState.
- completedBlock
A block called when operation has been completed. This block as no return value and takes the requested UIImage as first parameter. In case of error the image parameter is nil and the second parameter may contain an NSError. The third parameter is a Boolean indicating if the image was retrived from the local cache of from the network.
Discussion
The downloand is asynchronous and cached.
Declared In
UIButton+WebCache.hsetImageWithURL:forState:placeholderImage:
Set the imageView image with an url and a placeholder.
- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholderParameters
- url
The url for the image.
- state
The state that uses the specified title. The values are described in UIControlState.
- placeholder
The image to be set initially, until the image request finishes.
Discussion
The downloand is asynchronous and cached.
Declared In
UIButton+WebCache.hsetImageWithURL:forState:placeholderImage:completed:
Set the imageView image with an url, placeholder.
- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlockParameters
- url
The url for the image.
- state
The state that uses the specified title. The values are described in UIControlState.
- placeholder
The image to be set initially, until the image request finishes.
- completedBlock
A block called when operation has been completed. This block as no return value and takes the requested UIImage as first parameter. In case of error the image parameter is nil and the second parameter may contain an NSError. The third parameter is a Boolean indicating if the image was retrived from the local cache of from the network.
Discussion
The downloand is asynchronous and cached.
Declared In
UIButton+WebCache.hsetImageWithURL:forState:placeholderImage:options:
Set the imageView image with an url, placeholder and custom options.
- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)optionsParameters
- url
The url for the image.
- state
The state that uses the specified title. The values are described in UIControlState.
- placeholder
The image to be set initially, until the image request finishes.
- options
The options to use when downloading the image. @see SDWebImageOptions for the possible values.
Discussion
The downloand is asynchronous and cached.
Declared In
UIButton+WebCache.hsetImageWithURL:forState:placeholderImage:options:completed:
Set the imageView image with an url, placeholder and custom options.
- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlockParameters
- url
The url for the image.
- state
The state that uses the specified title. The values are described in UIControlState.
- placeholder
The image to be set initially, until the image request finishes.
- options
The options to use when downloading the image. @see SDWebImageOptions for the possible values.
- completedBlock
A block called when operation has been completed. This block as no return value and takes the requested UIImage as first parameter. In case of error the image parameter is nil and the second parameter may contain an NSError. The third parameter is a Boolean indicating if the image was retrived from the local cache of from the network.
Discussion
The downloand is asynchronous and cached.
Declared In
UIButton+WebCache.h