My VC is a subclass of UITableViewController and I’m trying to add a UIButton at the bottom of the screen.
I know how to do this when my VC is a UIView with a UITableView object in it, but how can I add this button when I’m subclassing UITableView? I tried adding it in IB but it only lets me add it as the table’s footer, which is only visible when the bottom of the table is scrolled to. Any ideas?
And also, how can I add an image behind the table while keeping the cells white? It’s easy when the class is UIView, but not sure in this case.
Suggestion1 : You could have create a separate view which contains your UIButton and place below of the UITableView.
Remark : This is useful because when you scroll the tableView the default footer will be stick to bottom.
Suggestion2 : you can use viewForFooterInSection delegate method. where you can create a view and add the UILabel. viewForFooterInSection returns the UIView, which you can return your view which contains the UILabel
Remark : when you scroll the tableView the default footer will move along with your tableView
NOTE :