@@ -23,9 +23,9 @@ Features
23
23
- Animated WebP, APNG, GIF support.
24
24
- Baseline/progressive/interlaced image decode support.
25
25
- Image loading category for UIImageView, UIButton, MKAnnotationView and CALayer.
26
+ - Image effect: blur, round corner, resize, color tint, crop, rotate and more.
26
27
- High performance memory and disk image cache.
27
28
- High performance image loader to avoid main thread blocked.
28
- - Image effect: blur, round corner, resize, color tint, crop, rotate and more.
29
29
- Fully documented.
30
30
31
31
Usage
67
67
placeholder: nil
68
68
options: YYWebImageOptionSetImageWithFadeAnimation
69
69
progress:^(NSInteger receivedSize, NSInteger expectedSize) {
70
- progress = receivedSize / expectedSize;
70
+ progress = (float) receivedSize / expectedSize;
71
71
}
72
72
transform:^UIImage * (UIImage * image, NSURL * url) {
73
73
image = [ image yy_imageByResizeToSize: CGSizeMake (100, 100) contentMode: UIViewContentModeCenter ] ;
@@ -146,9 +146,9 @@ YYWebImage 是一个异步图片加载框架 ([YYKit](https://github.com/ibireme
146
146
- 支持 WebP、APNG、GIF 动画。
147
147
- 支持逐行扫描、隔行扫描、渐进式图像加载。
148
148
- UIImageView、UIButton、MKAnnotationView、CALayer 的 Category 方法支持。
149
+ - 常见图片处理:模糊、圆角、大小调整、裁切、旋转、色调等。
149
150
- 高性能的内存和磁盘缓存。
150
151
- 高性能的图片设置方式,以避免主线程阻塞。
151
- - 常见图片处理:模糊、圆角、大小调整、裁切、旋转、色调等。
152
152
- 每个类和方法都有完善的文档注释。
153
153
154
154
用法
@@ -190,7 +190,7 @@ YYWebImage 是一个异步图片加载框架 ([YYKit](https://github.com/ibireme
190
190
placeholder: nil
191
191
options: YYWebImageOptionSetImageWithFadeAnimation
192
192
progress:^(NSInteger receivedSize, NSInteger expectedSize) {
193
- progress = receivedSize / expectedSize;
193
+ progress = (float) receivedSize / expectedSize;
194
194
}
195
195
transform:^UIImage * (UIImage * image, NSURL * url) {
196
196
image = [ image yy_imageByResizeToSize: CGSizeMake (100, 100) contentMode: UIViewContentModeCenter ] ;
0 commit comments