Merge pull request #1712 from timbroder/timbroder-patch-1

Update readme for 1st party progress indicator support
This commit is contained in:
Bogdan Poplauschi 2017-01-27 20:36:23 +02:00 committed by GitHub
commit c8b8ad04d6
1 changed files with 11 additions and 1 deletions

View File

@ -119,7 +119,17 @@ If you don't control the image server you're using, you may not be able to chang
### Add a progress indicator
See this category: https://github.com/JJSaccolo/UIActivityIndicator-for-SDWebImage
Add these before you call ```sd_setImageWithURL```
``` objective-c
[imageView setShowActivityIndicatorView:YES];
[imageView setIndicatorStyle:UIActivityIndicatorViewStyleGray];
```
``` swift
imageView.setShowActivityIndicatorView(true)
imageView.setIndicatorStyle(.Gray)
```
Installation
------------