title: Activity indicator on UIButton
body: <p>I have a custom button and I need to show an activity indicator instead of the title label after I  tap  the button. To hide titleLabel I use </p>
  
  <pre><code>self.titleLabel.layer.opacity = 0.0f;
  </code></pre>
  
  <p>In the method, where indicator starts animating</p>
  
  <pre><code>- (void)startAnimating {
  [self bringSubviewToFront: self.spinner];
  self.titleLabel.layer.opacity = 0.0f;
  [self.spinner startAnimating];
  
  self.titleLabel.layer.opacity = ([self isAnimating]) ? 0.0f : 1.0f;
  [self setNeedsDisplay];
  </code></pre>
  
  <p>}</p>
  
  <p>It works, but not for a long tap. When I use a long tap, the title label is not hidden, an activity indicator appears above the title. I tried to set the color for the title in "startAnimating", it works, but I think it is not a good solution. 
  If somebody could help, it would be really appreciated:)</p>