title: iPhone - initWithFrame not working for UIActivityIndicatorView?
body: <p>I am using a tableview with custom cells and want to change the content of the tableview on a button click. I am using an activity indicator while the cells are loading data.</p>
  
  <p>This is how I am creating the indicatorview</p>
  
  <pre><code>indicator = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(141.0, 190.0, 37.0, 37.0)];
  indicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhite;
  indicator.hidesWhenStopped = YES;
  [[self tableView] addSubview:indicator];
  </code></pre>
  
  <p>But it appears as if the frame has no effect on the indicator. The indicator instead of displaying in the center of the table, appears in the navigation bar on the top left corner of the view.</p>
  
  <p>I have no idea what is wrong with this and why this is happening. Can someone please help me out.
  <a href="http://www.freeimagehosting.net/uploads/95cbe49850.png" rel="nofollow noreferrer">alt text http://www.freeimagehosting.net/uploads/95cbe49850.png</a></p>