title: Using MBProgressHUD activity indictor
body: <p>so I have a table view and whenever user press a row, another class view shows up. So I wanted to have a loading indicator in between the transition. I am using MBProgressHUD, but it showed nothing when I pressed the row. And what should I put inside the @selector()?</p>
  
  <p>[loading showWhileExecuting:@selector() onTarget:self withObject:[NSNumber numberWithInt:i] animated:YES]; </p>
  
  <p>Here is my code.</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  
  loading = [[MBProgressHUD alloc] initWithView:self.view];
  
  [self.view addSubview:loading];
  
  loading.delegate = self;
  
  loading.labelText = @"Loading Events, Please Wait..";
  
  [loading showWhileExecuting:@selector(//what should I put) onTarget:self withObject:nil animated:YES]; 
  
  [tableView deselectRowAtIndexPath:indexPath animated:YES];
  
  
      if ([[self.citiesArray objectAtIndex:indexPath.row] isEqual:@"NEW YORK"])
       {
              self.newYorkViewController = [[NewYorkViewController alloc] initWithNibName:@"NewYorkViewController" bundle:nil];
                Twangoo_AppAppDelegate *delegate = (Twangoo_AppAppDelegate*)[[UIApplication sharedApplication] delegate];
              [delegate.citiesNavController pushViewController:self.newYorkViewController animated:YES];
        }
  
  }
  </code></pre>