title: UITableView and centering the Activity Indicator view
body: <p>I have a UITableView that fetches it's data from Parse.com. While it's doing this I want to display an Activity Indicator above the table centered. The code I have for this is:</p>
  
  <pre><code>        UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
          indicator.center=self.view.center;
          [self.view addSubview:indicator];
          [indicator startAnimating];
  </code></pre>
  
  <p>However it isn't quite central:</p>
  
  <p><img src="https://i.stack.imgur.com/XMMyP.png" alt="enter image description here"></p>
  
  <p>Sorry for the huge picture! I tried adding the indicator to the table superView and it didn't make a difference. Bit of a noob with all this. Could someone give me some pointers to what I might be doing wrong please?</p>