title: how to show UIActivityIndicatorView for tableview that loads
body: <p>A fairly short question, How can I load a UIActivityIndicatorView for say 0.5 seconds from when the view loads?</p>
  
  <p>I have had a look around but most tutorials are using the webview where an if statment is created where (webview.loading) is used to define the length of the animation etc..
  so i am just woundering how to do this when ever the view loads for .5 second.</p>
  
  <p>Currently I have a method that centers the previously selected cell which I would like the indicator to last untill this is done.</p>
  
  <pre><code>- (void)viewDidAppear:(BOOL)animated
  {
      [super viewDidAppear:animated];
  [self performSelector:@selector(scrollToRowAtIndexPath) withObject:nil afterDelay:1.0];
  }
  
  - (void)scrollToRowAtIndexPath
  {    
      [self.tableView reloadData];
      [self.tableView scrollToRowAtIndexPath:oldCheckedIndexPath atScrollPosition:UITableViewScrollPositionMiddle animated:NO];
  }
  </code></pre>