CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Roman Truba.
A UIView subclass displaying download progress. Looks similarly to springboard icons of apps being downloaded in iOS 7.
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;
}
}];