Skip to content

Commit

Permalink
Merge branch 'master' of github.com:kaiinui/KIProgressView
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiinui committed Sep 14, 2014
2 parents 944611e + 70be81e commit 55e3211
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,42 @@

Progress View like YouTube, Medium.

![](http://i.gyazo.com/8b5dca1d197a89cb34409f250295a5ae.gif)

Interface
---

```objc
[[KIProgressViewManager manager] setStyle:KIProgressViewStyleRepeated];

// KIProgressViewStyleRepeated
// KIProgressViewStyleBar
```
// KIProgressViewStyleProgressBar

[[KIProgressViewManager manager] setPosition:KIProgressViewPositionBotom];

// KIProgressViewPositionBottom
// KIProgressViewPositionTop

```objc
[[KIProgressViewManager manager] setColor:[UIColor redColor]];
```

```objc
[[KIProgressViewManager manager] showProgress];
```
[[KIProgressViewManager manager] setGradientStartColor:[UIColor blackColor]];
[[KIProgressViewManager manager] setGradientEndColor:[UIColor whiteColor]];

```objc
[[KIProgressViewManager manager] setProgress:0.80f]; // Only when the style is KIProgressViewStyleBar. It will automatically animate the view.
// Some presets from http://uigradients.com/
// [UIColor uig_cherryStartColor];
// [UIColor uig_cherryEndColor];

// or as sharthand,

[[KIProgressViewManager manager] setGradient:UIGCherry];

// UIGCherry
// UIGElectricViolet
// and so on..

[[KIProgressViewManager manager] showProgressOnView:self.view];

[[KIProgressViewManager manager] setProgress:0.80f]; // Only when the style is KIProgressViewStyleProgressBar. It will automatically animate the view.
```
References
Expand Down

0 comments on commit 55e3211

Please sign in to comment.