SHARE
TWEET

Untitled

a guest Jul 24th, 2011 161 Never
  1. - (void)viewDidLoad
  2. {
  3.     // Load data in background while displaying an activity indicator
  4.     NSLog(@"start HUD progress");
  5.     HUD = [[MBProgressHUD alloc] initWithView:self.navigationController.view];
  6.         [self.navigationController.view addSubview:HUD];
  7.        
  8.     HUD.delegate = self;
  9.     HUD.labelText = @"Loading";
  10.        
  11.     [HUD showWhileExecuting:@selector(loadDataFromWeb) onTarget:self withObject:nil animated:YES];
  12. }
RAW Paste Data
Top