title: Fading a UIView on top of a UITableView with Sections
body: <p>Greetings!</p>
  
  <p>I've added a <strong>UIActivityIndicatorView</strong> as a subview of a <strong>UITableView</strong>. The intent is to fade this view out once the underlying table has been refreshed with new data.</p>
  
  <p>The problem is that the <em>sections</em> in the table view (e.g., A, B, C, etc.) appear to be added after the Activity Indicator appears, partially blocking the activity indicator for a moment.</p>
  
  <p>Is there "a better way" (or more proper way) to be doing this sort of thing when it comes to activity indicators over table views with sections? Right now I'm doing this to fade out the <code>loading</code> activity indicator view:</p>
  
  <pre><code>CGContextRef context = UIGraphicsGetCurrentContext();
  [UIView beginAnimations:nil context:context];
  [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
  [UIView setAnimationDuration:1.0];
  [loading setAlpha:0.0f];
  [UIView commitAnimations];
  </code></pre>
  
  <p>FWIW, calling the equivalent of <code>[myTableView bringSubviewToFront:myActivityIndicatorView]</code> doesn't appear to help matters either.</p>
  
  <p>On top of that, there's the matter of removing <code>loading</code> from the superview. I suppose I need to use <code>setAnimationDidStopSelector:</code> and pass the loading view as context (and maybe I don't really need that <strong>CGContextRef</strong> line after all).</p>