Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 24th, 2011  |  syntax: Objective C  |  size: 0.42 KB  |  hits: 155  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }