...
|
...
|
@@ -27,16 +27,28 @@ With 4.0, the ones marked as `nullable` will be regular optionals, as the `nonnu |
|
|
|
|
|
For details, read [Nullability and Objective-C](https://developer.apple.com/swift/blog/?id=25).
|
|
|
|
|
|
#### Simple case
|
|
|
#### Using the UI*View categories brings no change
|
|
|
|
|
|
SDWebImage 3.x
|
|
|
```
|
|
|
[imageView sd_setImageWithURL:url];
|
|
|
[imageView sd_setImageWithURL:url placeholderImage:placeholderImage];
|
|
|
```
|
|
|
|
|
|
SDWebImage 4.x
|
|
|
```
|
|
|
[imageView sd_setImageWithURL:url];
|
|
|
[imageView sd_setImageWithURL:url placeholderImage:placeholderImage];
|
|
|
```
|
|
|
|
|
|
#### Using directly SDWebImageManager
|
|
|
|
|
|
SDWebImage 3.x
|
|
|
```
|
|
|
[manager downloadImageWithURL:url options:options: progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) { ... } ];
|
|
|
```
|
|
|
|
|
|
SDWebImage 4.x
|
|
|
```
|
|
|
[manager loadImageWithURL:url options:options: progress:nil completed:^(UIImage *image, NSData *imageData, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) { ... } ];
|
|
|
```
|
|
|
|
|
|
### Entities
|
...
|
...
|
|