Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __block bool theResult;
- [self.mbProgressHUD showAnimated:YES whileExecutingBlock:^{
- theResult = [someClass someMethodThatReturnsTRUEorFALSE];
- } completionBlock:^{
- [self.mbProgressHUD removeFromSuperview];
- if (theResult) {
- dispatch_async(dispatch_get_main_queue(), ^{
- UIAlertView *theAlert....
- [theAlert show];
- });
- };
- }];
Add Comment
Please, Sign In to add comment