Hi!
Look at the reference of UITableViewDelegate, there are two cool functions that (I think) will solve your problem:
- (UIView *)tableView: (UITableView *)tableView viewForHeaderInSection: (NSInteger)section
and
- (UIView *)tableView: (UITableView *)tableView viewForFooterInSection: (NSInteger)section
It is not as straightforward, as it seems, but maybe you have to do something like this:
in the first section (0. section), you should set up your view that you want to see on top of your table view in the following method: - (UIView *)tableView: (UITableView *)tableView viewForHeaderInSection: (NSInteger)section
in last section (numberOfSectionsInTableView - 1), you should set up the view you want to see at the end of your table view in the following method:- (UIView *)tableView: (UITableView *)tableView viewForFooterInSection: (NSInteger)section
I hope it helped, have a nice day!