title: Fixed image at the bottom of UITableView
body: <p>Can someone help me stick an image at the bottom of an <code>UITableView</code>? It needs to stay at the bottom if there aren't enough rows and be pushed down otherwise.</p>
  
  <p><a href="https://i.stack.imgur.com/8A4Gm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8A4Gm.jpg" alt="enter image description here"></a></p>
  
  <p>I've tried this code, but it will sit under the last row if there aren't enough to fill the screen. </p>
  
  <pre><code>    let image = UIImage(named: "TableBackground")
      let imageView = UIImageView(frame: CGRectMake(0, 0, view.frame.width, view.frame.width/image!.size.width * image!.size.height))
      imageView.image = image
      imageView.contentMode = .ScaleAspectFit
      theTable.tableFooterView = imageView
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/A6GI4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A6GI4.jpg" alt="enter image description here"></a></p>