2011-07-25 23:50:21 +08:00
|
|
|
/*
|
|
|
|
* This file is part of the SDWebImage package.
|
|
|
|
* (c) Olivier Poitrey <rs@dailymotion.com>
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import "SDWebImageCompat.h"
|
|
|
|
#import "SDWebImageManagerDelegate.h"
|
|
|
|
|
|
|
|
@interface UIButton (WebCache) <SDWebImageManagerDelegate>
|
|
|
|
|
2011-11-18 01:21:57 +08:00
|
|
|
/**
|
|
|
|
* Set the imageView `image` with an `url`.
|
|
|
|
*
|
|
|
|
* The downloand is asynchronous and cached.
|
|
|
|
*
|
|
|
|
* @param url The url that the image is found.
|
|
|
|
* @see setImageWithURL:placeholderImage:
|
|
|
|
*/
|
2011-07-25 23:50:21 +08:00
|
|
|
- (void)setImageWithURL:(NSURL *)url;
|
2011-11-18 01:21:57 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the imageView `image` with an `url` and a placeholder.
|
|
|
|
*
|
|
|
|
* The downloand is asynchronous and cached.
|
|
|
|
*
|
|
|
|
* @param url The url that the `image` is found.
|
|
|
|
* @param placeholder A `image` that will be visible while loading the final image.
|
|
|
|
*/
|
2011-07-25 23:50:21 +08:00
|
|
|
- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder;
|
2011-11-18 01:21:57 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Cancel the current download
|
|
|
|
*/
|
2011-07-25 23:50:21 +08:00
|
|
|
- (void)cancelCurrentImageLoad;
|
|
|
|
|
|
|
|
@end
|