In order to customize a table view and add some additional controls to it, I've embedded a UTTableViewController into a Container View and placed that container View into a UIViewController.
I've followed the instructions I found here: Embedding TableView in TableViewController into another view
TableView is configured with four static cells, but there are unwanted table cells visible at the bottom when my app runs. As if cells are dynamic, but they are defines as static.
Looking for a suggestion what do I need to do just to show the four cells that I defined?
Best How To :
You just need to add this to your code in viewDidLoad.
self.tableView.tableFooterView = [[UIView alloc]initWithFrame:CGRectZero];
EDIT: sorry i was written in objective -c
here is in swift.
self.tableView.tableFooterView = UIView(frame:CGRectZero)
The tableview will display what appear to be extra blank rows to fill out the bounds if there are not enough rows to fill one screen. It does not ask your datasource delegate for these rows because they are not really there. It is just drawing divider lines to make it look like empty rows. see comments in
I think this will help.