Update README

This commit is contained in:
Reda Lemeden 2014-09-11 23:26:38 +02:00
parent fcaa1a9c19
commit d1fe7264e5
1 changed files with 7 additions and 5 deletions

View File

@ -32,14 +32,16 @@ Once done, you can call `setAnimatableImage(named:)` or
let imageView = UIImageView(...)
imageView.setAnimatableImage(named: "computer-kid.gif")
// or
imageView.setAnimatableImage(data: NSData(...))
// imageView.setAnimatableImage(data: NSData(...))
```
You can start/stop the animation using `UIImageView`'s `startAnimating()` and
`stopAnimating()`.
The image view will not start animating until you call `startAnimating()`
on it. You can stop the animation anytime using `stopAnimating()`, and resume
it using `startAnimating()`.
You can find a demo app in this [branch](https://github.com/kaishin/gifu/tree/demo) (requires Xcode 6).
The `isAnimating()` method returns the current animation state of the view.
For an example, check out the demo app [here](https://github.com/kaishin/gifu/tree/demo) (requires Xcode 6).
<img src="https://raw.githubusercontent.com/kaishin/gifu/demo/demo.gif" width="300" />