I would like to display an UIView above my tableview, for testing purposes I have used a Searchbar (to eliminate any possible problems with my code).
My setup:
The really simple solution is to:
UITableViewDelegate and UITableViewDataSource just like UITableViewController does. Also add a UITableView outlet.UITableView inside the view controller's view.tableView outlet in your custom UIViewControllerUITableView's delegate and datasource to the File's Owner (your custom UIViewController that implements the right delegates)You now have a custom view controller that works just like a UITableViewController except you have total control over it's layout. You implement the delegates in the same way.