Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
- return 10
- }
- func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
- let footerView = UIView()
- footerView.backgroundColor = .clear
- return footerView
- }
- or
- func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
- cell.contentView.layoutMargins.top = 10
- cell.contentView.layoutMargins.bottom = 10
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement