tableFooterView property doesn’t fix the footer at the bottom of the table view

Since your goal is to have a footer that stays fixed at the bottom of the screen, and not scroll with the table, then you can’t use a table view footer. In fact, you can’t even use a UITableViewController.

You must implement your view controller as a UIViewController. Then you add your own table view as a subview. You also add your footer as a subview of the view controller’s view, not the table view. Make sure you size the table view so its bottom is at the top of the footer view.

You will need to make your view controller conform to the UITableViewDataSource and UITableViewDelegate protocols and hook everything up to replicate the functionality of UITableViewController.

Leave a Comment