daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Jan 15th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. __block bool theResult;
  2.     [self.mbProgressHUD showAnimated:YES whileExecutingBlock:^{
  3.       theResult = [someClass someMethodThatReturnsTRUEorFALSE];
  4.     } completionBlock:^{
  5.       [self.mbProgressHUD removeFromSuperview];
  6.       if (theResult) {
  7.         dispatch_async(dispatch_get_main_queue(), ^{
  8.           UIAlertView *theAlert....
  9.           [theAlert show];
  10.         });
  11.       };
  12.     }];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top