Permalink
Browse files

Merge pull request #83 from ruggeri/master

Setting graceTime and using block method caused HUD to never appear
  • Loading branch information...
matej committed Aug 27, 2012
2 parents 4b96571 + 93fff46 commit 34e95db3bcc4e8b319a91eb8367c5f57909333c3
Showing with 2 additions and 2 deletions.
  1. +2 −2 MBProgressHUD.m
View
@@ -382,15 +382,15 @@ - (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block
- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block onQueue:(dispatch_queue_t)queue
completionBlock:(MBProgressHUDCompletionBlock)completion {
-
+ self.taskInProgress = YES;
self.completionBlock = completion;
dispatch_async(queue, ^(void) {
block();
dispatch_async(dispatch_get_main_queue(), ^(void) {
[self cleanUp];
});
});
- [self show:animated];
+ [self show:animated];
}
#endif

0 comments on commit 34e95db

Please sign in to comment.