title: MBProgressHUD not showing from another class
body: <p>I'm getting values from Parse Cloud by pressing a button. The code for getting the data data from Parse is in another class, but when I try to show the MBProgessHUD from that class it doesn't do anything. </p>
  
  <p>No errors either.  However, if I do all in the same class, it works. Not sure how to display the progressHUD from another class on a specific view which is open at that time. </p>
  
  <pre><code>- (IBAction)testWeather:(id)sender {
  
       Reports * obje2 = [[Reports  alloc]init];
       [obje2 startGetting];
  }
  </code></pre>
  
  <p>// in reports class</p>
  
  <pre><code>-(void) startGetting {
  
  
  
             Names= [[NSMutableArray alloc] init];
          Latitude= [[NSMutableArray alloc] init];
          Longitude= [[NSMutableArray alloc] init];
  
  
      [Names removeAllObjects];
      [Latitude removeAllObjects];
      [Longitude removeAllObjects];
  
  
      NSUserDefaults * standardUserDefaults = [NSUserDefaults standardUserDefaults];
      NSString *CountyName = [standardUserDefaults stringForKey:@"CurrentlySelectedCounty"];
  
  
      PFQuery *query = [PFQuery queryWithClassName:@"Reports"];
      [query whereKey:@"County" equalTo:@"Universal"];
  
  
      //
      NSInteger countTotal= [query countObjects];
      NSString *totalVals = [NSString stringWithFormat: @"%d", (int)countTotal];
      [[NSUserDefaults standardUserDefaults] setObject:totalVals forKey:@"NumberOfSwamps"];
      //
  
  
      NSString * storyboardName = @"Main_iPhone";
      UIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle: nil];
      UIViewController * vc = [storyboard instantiateViewControllerWithIdentifier:@"browsePage"];
  
  
      MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:vc.view animated:YES];
      hud.mode = MBProgressHUDModeIndeterminate;
      hud.labelText = @"Loading Reports";
      [hud show:YES];
  
      [query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
           [hud hide:YES];
          if (!error) {
              for (PFObject *obj in objects) {
  
                  NSString *LastName = [obj objectForKey:@"Name"] ;
                  NSString *Lat = [obj objectForKey:@"Latitude"] ;
                  NSString *Lon = [obj objectForKey:@"Longitude"] ;
  
  
                  // add values to array
                  [Names addObject:LastName];
                  [Latitude addObject:Lat];
                  [Longitude addObject:Lon];
  
                  [self getResults];
  
              }
  
          }
  
   else{
              NSLog(@"Error: %@ %@", error, [error userInfo]);
          }
  
      }];
  }
  </code></pre>
  
  <p>Trying another way...but this doesn't work either...even though HUD is running from the original class. </p>
  
  <p>browse.m,</p>
  
  <pre><code>    if (myInt == 8){
  
              NSLog(@"\n \n Pressed the refresh icon for reports");
              [self removeAllAnnotations];
  
  
  [standardUserDefaults setInteger:1 forKey:@"HUD_Switch"];   // to make sure switching on
          [standardUserDefaults synchronize];
  
              [self HUDSwitcher];
  
  
              Reports * obje2 = [[Reports  alloc]init];
              [obje2 startGetting];
          }
  
  -(void) HUDSwitcher{
  
      NSUserDefaults * standardUserDefaults = [NSUserDefaults standardUserDefaults];
      NSInteger myInt = [standardUserDefaults integerForKey:@"HUD_Switch"];   // 0 for switched off     .... 1 for switched on
  
      NSString * storyboardName = @"Main_iPhone";
      UIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle: nil];
      UIViewController * vc = [storyboard instantiateViewControllerWithIdentifier:@"browsePage"];
  
      MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:vc.view animated:YES];
      hud.mode = MBProgressHUDModeIndeterminate;
      hud.labelText = @"Testing";
      [hud show:YES];
  
  
      if (myInt==0) {
          [hud hide:YES];
      }
  
  }
  </code></pre>
  
  <p>reports.m</p>
  
  <pre><code>     [standardUserDefaults setInteger:1 forKey:@"HUD_Switch"];   // to switch on the HUD value
  
      browsePage * obje2 = [[browsePage  alloc]init];
      [obje2 HUDSwitcher];
  
      [query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
           [standardUserDefaults setInteger:0 forKey:@"HUD_Switch"];
  
  
  [standardUserDefaults synchronize];
           browsePage * obje2 = [[browsePage  alloc]init];
  
          [obje2 HUDSwitcher];
          if (!error) {
              for (PFObject *obj in objects) {
  
                  NSString *LastName = [obj objectForKey:@"Name"] ;
                  NSString *Lat = [obj objectForKey:@"Latitude"] ;
                  NSString *Lon = [obj objectForKey:@"Longitude"] ;
  
  
                  // add values to array
                  [Names addObject:LastName];
                  [Latitude addObject:Lat];
                  [Longitude addObject:Lon];
  
                  [self getResults];
  
              }
  
          }
  
   else{
              NSLog(@"Error: %@ %@", error, [error userInfo]);
          }
  
      }];
  }
  </code></pre>