CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

DAProgressOverlayLayeredView 1.2

DAProgressOverlayLayeredView 1.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Roman Truba.



  • By
  • Daria Kopaliani and Roman Truba

DAProgressOverlayView

A UIView subclass displaying download progress. Looks similarly to springboard icons of apps being downloaded in iOS 7.

Animated example

Installing

Usage

1) Create overlay view with your view bounds, and add it:

self.progressOverlayView = [[DAProgressOverlayView alloc] initWithFrame:self.imageView.bounds]; //Create new view
[self.imageView addSubview:self.progressOverlayView]; //Add as subview
[self.progressOverlayView displayOperationWillTriggerAnimation]; //Play start animation

2) Update overlay progress level:

self.progressOverlayView.progress = progress;

3) Catch animation finish:

__weak DAViewController *wself = self;
[self.progressOverlayView setAnimationCompletionHandler:^(DAProgressOverlayAnimationType type) {
    if (type == DAProgressOverlayAnimationFinish) {
        wself.progressOverlayView = nil;
    }
}];