title: Changing the background color on a UITableViewHeaderFooterView loaded from a xib says to use contentView.backgroundColor instead
body: <p>I'm <a href="https://stackoverflow.com/a/20073742/35690">creating a UITableViewHeaderFooterView from a xib file</a>, and almost everything is working properly. </p>
  
  <p>The problem is that now when I try to change the background color (or if I had one configured in the xib), it will constantly output this message to the console:</p>
  
  <blockquote>
    <p>Setting the background color on UITableViewHeaderFooterView has been deprecated. Please use contentView.backgroundColor instead.</p>
  </blockquote>
  
  <p>This means I have two problems:</p>
  
  <ul>
  <li>If I don't want to see that warning, I must get rid of the background color in the xib file.(This is undesirable because then it means my xib no longer reflects what the view will look like at runtime).</li>
  <li>When I attempt to change the background color via code, I get the <code>contentView.backgroundColor</code> suggestion, but when I try to follow that suggestion, nothing happens. (This is because <code>contentView</code> is <code>nil</code>.)</li>
  </ul>
  
  <p><strong>Note:</strong> There is a <a href="https://stackoverflow.com/questions/18800743/uitableviewheaderfooterview-cant-change-custom-background-when-loading-from-nib">similar question</a> here, but that was mainly concerned with muting the message, not finding an alternative solution that resolves both problems above.</p>
  
  <p><strong>Update:</strong> To be clear, I want to continue using a xib file for the header view, and want to be able to call <a href="https://developer.apple.com/library/ios/documentation/uikit/reference/UITableView_Class/Reference/Reference.html#//apple_ref/occ/instm/UITableView/dequeueReusableHeaderFooterViewWithIdentifier:" rel="noreferrer">dequeueReusableHeaderFooterViewWithIdentifier:</a> so that the table can be efficient in its management of the views.</p>