title: Place a UIActivityIndicator inside a UIButton
body: <p>I know I'm missing something stupid, but anyway, here is my code:</p>
  
  <pre><code>UIActivityIndicatorView indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
  indicator.hidesWhenStopped = YES;
  indicator.frame = btnLogin.frame;
  indicator.center = btnLogin.center;
  [self.view addSubview:indicator];
  [indicator bringSubviewToFront:indicator];
  </code></pre>
  
  <p>Here is the end result:</p>
  
  <p><img src="https://i.stack.imgur.com/8ib2S.png" alt="Screenshot of misplaced UIActivityIndicator"></p>
  
  <p><a href="http://img542.imageshack.us/img542/8172/uiactivity.png" rel="noreferrer">http://img542.imageshack.us/img542/8172/uiactivity.png</a></p>
  
  <p>Thank you in advance!</p>