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