/*
* 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 "SDWebImageManager.h"
/**
* Integrates SDWebImage async downloading and caching of remote images with UIButtonView.
*/
@interface UIButton (WebCache)
/**
* Get the current image URL.
*/
- (NSURL *)sd_currentImageURL;
/**
* Get the image URL for a control state.
*
* @param state Which state you want to know the URL for. The values are described in UIControlState.
*/
- (NSURL *)sd_imageURLForState:(UIControlState)state;
/**
* Set the imageView `image` with an `url`.
*
* The download is asynchronous and cached.
*
* @param url The url for the image.
* @param state The state that uses the specified title. The values are described in UIControlState.
*/
- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state;
/**
* Set the imageView `image` with an `url` and a placeholder.
*
* The download is asynchronous and cached.
*
* @param url The url for the image.
* @param state The state that uses the specified title. The values are described in UIControlState.
* @param placeholder The image to be set initially, until the image request finishes.
* @see sd_setImageWithURL:placeholderImage:options:
*/
- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder;
/**
* Set the imageView `image` with an `url`, placeholder and custom options.
*
* The download is asynchronous and cached.
*
* @param url The url for the image.
* @param state The state that uses the specified title. The values are described in UIControlState.
* @param placeholder The image to be set initially, until the image request finishes.
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
*/
- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options;
/**
* Set the imageView `image` with an `url`.
*
* The download is asynchronous and cached.
*
* @param url The url for the image.
* @param state The state that uses the specified title. The values are described in UIControlState.
* @param completedBlock A block called when operation has been completed. This block has 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 or from the network.
* The fourth parameter is the original image url.
*/
- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletionBlock)completedBlock;
/**
* Set the imageView `image` with an `url`, placeholder.
*
* The download is asynchronous and cached.
*
* @param url The url for the image.
* @param state The state that uses the specified title. The values are described in UIControlState.
* @param placeholder The image to be set initially, until the image request finishes.
* @param completedBlock A block called when operation has been completed. This block has 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 or from the network.
* The fourth parameter is the original image url.
*/
- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletionBlock)completedBlock;
/**
* Set the imageView `image` with an `url`, placeholder and custom options.
*
* The download is asynchronous and cached.
*
* @param url The url for the image.
* @param state The state that uses the specified title. The values are described in UIControlState.
* @param placeholder The image to be set initially, until the image request finishes.
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
* @param completedBlock A block called when operation has been completed. This block has 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 or from the network.
* The fourth parameter is the original image url.
*/
- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock;
/**
* Set the backgroundImageView `image` with an `url`.
*
* The download is asynchronous and cached.
*
* @param url The url for the image.
* @param state The state that uses the specified title. The values are described in UIControlState.
*/
- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state;
/**
* Set the backgroundImageView `image` with an `url` and a placeholder.
*
* The download is asynchronous and cached.
*
* @param url The url for the image.
* @param state The state that uses the specified title. The values are described in UIControlState.
* @param placeholder The image to be set initially, until the image request finishes.
* @see sd_setImageWithURL:placeholderImage:options:
*/
- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder;
/**
* Set the backgroundImageView `image` with an `url`, placeholder and custom options.
*
* The download is asynchronous and cached.
*
* @param url The url for the image.
* @param state The state that uses the specified title. The values are described in UIControlState.
* @param placeholder The image to be set initially, until the image request finishes.
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
*/
- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options;
/**
* Set the backgroundImageView `image` with an `url`.
*
* The download is asynchronous and cached.
*
* @param url The url for the image.
* @param state The state that uses the specified title. The values are described in UIControlState.
* @param completedBlock A block called when operation has been completed. This block has 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 or from the network.
* The fourth parameter is the original image url.
*/
- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletionBlock)completedBlock;
/**
* Set the backgroundImageView `image` with an `url`, placeholder.
*
* The download is asynchronous and cached.
*
* @param url The url for the image.
* @param state The state that uses the s
没有合适的资源?快使用搜索试试~ 我知道了~
WaterfallFlowLayout瀑布流用重写UICollectionViewFlowLayout类实现Demo
共59个文件
m:23个
h:22个
plist:6个
5星 · 超过95%的资源 需积分: 47 33 下载量 3 浏览量
2016-01-25
17:34:40
上传
评论
收藏 103KB ZIP 举报
温馨提示
WaterfallFlowLayout瀑布流用重写UICollectionViewFlowLayout类实现Demo; 一下是博客地址 http://blog.csdn.net/margaret_mo/article/details/50581959
资源推荐
资源详情
资源评论
收起资源包目录
19_WaterfallFlow.zip (59个子文件)
19_WaterfallFlow
.DS_Store 6KB
19_WaterfallFlowTests
Info.plist 733B
_9_WaterfallFlowTests.m 935B
19_WaterfallFlow
ViewController.m 3KB
.DS_Store 6KB
SDWebImage
.DS_Store 10KB
SDImageCache.h 8KB
UIButton+WebCache.m 12KB
UIImageView+HighlightedWebCache.h 5KB
SDWebImageManager.h 11KB
UIImage+GIF.h 382B
SDWebImageDownloaderOperation.h 3KB
SDWebImageDownloaderOperation.m 18KB
NSData+ImageContentType.m 1KB
UIImageView+WebCache.h 10KB
SDImageCache.m 20KB
SDWebImageDecoder.m 3KB
MKAnnotationView+WebCache.h 6KB
SDWebImageOperation.h 329B
SDWebImagePrefetcher.h 4KB
UIView+WebCacheOperation.m 2KB
UIImageView+WebCache.m 8KB
SDWebImageDownloader.m 11KB
UIImage+MultiFormat.h 263B
SDWebImageDownloader.h 7KB
SDWebImageManager.m 14KB
SDWebImageCompat.h 2KB
UIImage+WebP.h 490B
UIView+WebCacheOperation.h 970B
UIImageView+HighlightedWebCache.m 5KB
UIButton+WebCache.h 13KB
UIImage+WebP.m 2KB
MKAnnotationView+WebCache.m 5KB
UIImage+MultiFormat.m 3KB
SDWebImageCompat.m 2KB
NSData+ImageContentType.h 565B
SDWebImagePrefetcher.m 5KB
SDWebImageDecoder.h 453B
UIImage+GIF.m 5KB
Info.plist 2KB
main.m 343B
WaterfallFlowLayout.m 4KB
1.plist 13KB
2.plist 13KB
CollectionWaterfallCell.m 1KB
Good.m 1KB
Base.lproj
LaunchScreen.storyboard 2KB
Main.storyboard 2KB
WaterfallFlowLayout.h 406B
3.plist 13KB
ViewController.h 224B
AppDelegate.h 286B
Assets.xcassets
AppIcon.appiconset
Contents.json 1KB
Good.h 603B
CollectionWaterfallCell.h 297B
AppDelegate.m 2KB
19_WaterfallFlow.xcodeproj
xcuserdata
momo.xcuserdatad
xcschemes
xcschememanagement.plist 579B
19_WaterfallFlow.xcscheme 4KB
project.pbxproj 31KB
共 59 条
- 1
资源评论
- madaping2016-08-29代码质量还不错
莫小言mo
- 粉丝: 902
- 资源: 17
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功