Prevent footer overlapping tableViewCell in UITableView - Swift

前端 未结 7 1243
萌比男神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:15

    Sorry for the delay. If you have modified the standard contentInsetAdjustmentBehavior of the tableView, you must adjust the tableView contentInset property to take into account the total height of the views at the bottom of the UITableView, like the tab bar. If contentInsetAdjustmentBehavior is set to "automatic" (or you didn't change the default value), then set the clipsToBounds property of your footer view to true so that its child views cannot be painted outside the footer view layer's frame. That should solve your issue.

提交回复
热议问题