title: activity indicator start at the end of loading
body: <p>what's wrong with my code?</p>
  
  <p>i want spinner indicator start when  view1.nib start to load.
  so i put [spinner startAnimating]; in     - (void)viewDidLoad .
  but it will get that url then start spinner indicator...</p>
  
  <pre><code>- (void)viewDidLoad {
  
  
  
  
  
  
  
  
  [spinner startAnimating];
  
  NSURL *originalUrl=[NSURL URLWithString:@"http://example.com/"];
  NSData *data=nil;  
  NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:originalUrl cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:10];
  NSURLResponse *response;
  NSError *error;
  data = [NSURLConnection sendSynchronousRequest:request returningResponse:&amp;response error:&amp;error];
  
  
  NSURL *LastURL=[response URL];
  
  
  NSLog(@"%@",LastURL);
  
  
  
  [backr,backrm,downloadr  setEnabled:FALSE];
  
  backr.hidden=YES;
  backrm.hidden=YES;
  downloadr.hidden=YES;
  [self nextr:0];
  [super viewDidLoad];
  </code></pre>
  
  <p>}</p>