title: iOS Swift UITableView tableFooterView Auto Size
body: <p>I want to add a footer to my table which will have a varying height based on the message etc.  I use auto layout and have the label configured to work wrap and have the number of lines set to 0.  You can see the template cell in my tableView below as well as all the constraints for the label and button.  You can also see the properties set for the label that do make it wrap across multiple lines.  The challenge is that when the footer is displayed, the height of the footer is not auto sizing to show all the content.  </p>
  
  <p><img src="https://i.stack.imgur.com/Gt3Xo.png" alt="Interface Builder Info">  </p>
  
  <p>Here is the code I use to add the template cell as the footer.</p>
  
  <pre><code>        let  FooterCell = NearbyPlacesTable.dequeueReusableCellWithIdentifier(lc_MessageCellTableIdentifier) as! NearbyPlacesMessageCell
          FooterCell.backgroundColor = UIColor.clearColor()
          FooterCell.SetMessage(true)
          FooterCell.layoutIfNeeded()
          NearbyPlacesTable.tableFooterView = FooterCell
  </code></pre>
  
  <p>The set message function simply puts the message text in the label.  This is working correctly as you can see from the screen shot.</p>
  
  <p>Any idea how to make it so my entire footer is visible?</p>
  
  <p>So I am updating the question hoping someone will see it and be able to answer the question.  Can anyone provide information on what I might be doing wrong? </p>