title: How to set clear background for UITableView Header with opaque body
body: <p>How do I make the background for a <em>tableHeaderView</em> <strong>clear</strong>, but keep the rest of the UITableView background <strong>opaque</strong>?</p>
  
  <p>I'm using a transparent tableHeaderView for a paralax effect. The object behind the tableView is a longer than the clear tableHeaderView "window" so I can center the visible data. This works well for longer lists as I can use the tableView as a mask, but when I don't have enough cells in the table the background object displays below the cells.</p>
  
  <p>Relevant code:</p>
  
  <pre><code>self.tableView.backgroundView = nil;
  self.tableView.backgroundColor = [UIColor whiteColor];
  
  UIView *tableHeaderView = [[UIView alloc] initWithFrame: CGRectMake(0.0, 0.0, 320.0, 250.0)];
  tableHeaderView.backgroundColor = [UIColor clearColor];
  self.tableView.tableHeaderView = tableHeaderView;
  </code></pre>
  
  <p>I've tried setting a background color for the tableView, but that makes the whole UITableView opaque (including the tableHeaderView), removing the "window" I have at the top.</p>
  
  <p>Any ideas on how I can keep my transparent tableHeaderView while setting the body of the UITableView opaque?</p>
  
  <p>Thanks!</p>