Merge pull request #1712 from timbroder/timbroder-patch-1
Update readme for 1st party progress indicator support
This commit is contained in:
commit
c8b8ad04d6
12
README.md
12
README.md
|
@ -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
|
||||
------------
|
||||
|
|
Loading…
Reference in New Issue