Conforms to NSObject
Declared in UIImageView+AFNetworking.h

Overview

The AFImageCache protocol is adopted by an object used to cache images loaded by the AFNetworking category on UIImageView.

Tasks

Instance Methods

cacheImage:forRequest:

- (void)cacheImage:(UIImage *)image forRequest:(NSURLRequest *)request
Discussion

Caches a particular image for the specified request.

Parameters

image

The image to cache.

request

The request to be used as a cache key.

Declared In

UIImageView+AFNetworking.h

cachedImageForRequest:

- (UIImage *)cachedImageForRequest:(NSURLRequest *)request
Discussion

Returns a cached image for the specififed request, if available.

Parameters

request

The image request.

Return Value

The cached image.

Declared In

UIImageView+AFNetworking.h