Prevent footer overlapping tableViewCell in UITableView - Swift

前端 未结 7 1245
萌比男神i
萌比男神i 2020-12-18 06:31

I have this table view which works how i want it to however i have a problem where the footer overlap the cells in the table view as seen in

How can i prevent this?

7条回答
  •  爱一瞬间的悲伤
    2020-12-18 07:07

    Just add some padding to the bottom of the content so that it doesn't overlap with the footer:

    self.tableView.contentInset = UIEdgeInsetsMake(0, 0, FOOTER_HEIGHT, 0)
    

提交回复
热议问题