CocoaPods trunk is moving to be read-only. Read more on the blog, there are 3 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Dec 2016 |
Maintained by Zeyu Tao.
网络图片处理控件,封装于SDWebImage,主要增加一些经常使用的交互需求功能封装。

[self.imageView setNormalImageContentMode:UIViewContentModeScaleToFill
placeHodlerImage:[UIImage imageNamed:@"default.jpg"]
contentMode:UIViewContentModeCenter
errorImage:[UIImage imageNamed:@"error.jpg"]
contentMode:UIViewContentModeCenter];
[self.imageView setImageWithUrl:[NSURL URLWithString:url] options:0
progress:^(NSInteger receivedSize, NSInteger expectedSize) {
wself.number.text = [NSString stringWithFormat:@"%lu %%",
(long)receivedSize*100/expectedSize];
} completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
wself.number.text = @"";
if (cacheType == SDImageCacheTypeNone){
[wself.imageView setAnimationRepeatCount:20];
[wself.imageView startAnimating];
}
}];
[self.imageView setFadeInAnimationEnable:YES duration:2];
[self.imageView setMaskLayerColor:[UIColor greenColor] radius:20];
[self.imageView setAutoPlay:YES];
[self.imageView setAutoRepeatCount:20];
该项目最低支持iOS 7.0和Xcode 7.0
HTImageView,详情见LICENSE文件。