Tung Fam Tung Fam - 3 months ago 11
Objective-C Question

Add empty (blank) space under (in the end of) UITableView

My app has the

UITableView
which have variable quantity of cells inside.
How can I add empty (blank) space with certain height under the
UITableView
? Or in the very end of
UITableView
?
So that after the very last cell there will be more blank space.

Hope my question is clear.
Thanks in advance

Answer

Make content inset on your table view:

let insets = UIEdgeInsets(top: 0, left: 0, bottom: 100, right: 0)
self.tableView.contentInset = insets