Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Demo/HudDemo/MBHudDemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ - (void)doSomeWork {
}

- (void)doSomeWorkWithProgressObject:(NSProgress *)progressObject {
progressObject.localizedDescription = @"Download Progress";
// This just increases the progress indicator in a loop.
while (progressObject.fractionCompleted < 1.0f) {
if (progressObject.isCancelled) break;
Expand Down
2 changes: 2 additions & 0 deletions MBProgressHUD.m
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,8 @@ - (void)setNSProgressDisplayLinkEnabled:(BOOL)enabled {

- (void)updateProgressFromProgressObject {
self.progress = self.progressObject.fractionCompleted;
self.label.text = self.progressObject.localizedDescription;
self.detailsLabel.text = self.progressObject.localizedAdditionalDescription;
}

#pragma mark - Notifications
Expand Down