When creating a UITableViewController do the following:
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:tableViewController];
and then instead of setting the table view controller as the view, install it on the navigation controller. Inside the table view controller, you can set the left and right buttons for the navigation bar on the UIBarButtonItem (ask me if you want to know how to do this).
jrtc27
source share