Declared in MKAnnotationView+WebCache.h
MKAnnotationView+WebCache.m

Overview

Integrates SDWebImage async downloading and caching of remote images with MKAnnotationView.

Tasks

Instance Methods

cancelCurrentImageLoad

Cancel the current download

- (void)cancelCurrentImageLoad

Discussion

Cancel the current download

Declared In

MKAnnotationView+WebCache.h

setImageWithURL:

Set the imageView image with an url.

- (void)setImageWithURL:(NSURL *)url

Parameters

url

The url for the image.

Discussion

Set the imageView image with an url.

The downloand is asynchronous and cached.

Declared In

MKAnnotationView+WebCache.h

setImageWithURL:completed:

Set the imageView image with an url.

- (void)setImageWithURL:(NSURL *)url completed:(SDWebImageCompletedBlock)completedBlock

Parameters

url

The url for the image.

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

Set the imageView image with an url.

The downloand is asynchronous and cached.

Declared In

MKAnnotationView+WebCache.h

setImageWithURL:placeholderImage:

Set the imageView image with an url and a placeholder.

- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder

Parameters

url

The url for the image.

placeholder

The image to be set initially, until the image request finishes.

Discussion

Set the imageView image with an url and a placeholder.

The downloand is asynchronous and cached.

Declared In

MKAnnotationView+WebCache.h

setImageWithURL:placeholderImage:completed:

Set the imageView image with an url, placeholder.

- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock

Parameters

url

The url for the image.

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

Set the imageView image with an url, placeholder.

The downloand is asynchronous and cached.

Declared In

MKAnnotationView+WebCache.h

setImageWithURL:placeholderImage:options:

Set the imageView image with an url, placeholder and custom options.

- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options

Parameters

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.

Discussion

Set the imageView image with an url, placeholder and custom options.

The downloand is asynchronous and cached.

Declared In

MKAnnotationView+WebCache.h

setImageWithURL:placeholderImage:options:completed:

Set the imageView image with an url, placeholder and custom options.

- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock

Parameters

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 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

Set the imageView image with an url, placeholder and custom options.

The downloand is asynchronous and cached.

Declared In

MKAnnotationView+WebCache.h