UITableView space between row and sections

后端 未结 5 1351
野的像风
野的像风 2021-01-13 11:39

I want to make a UITableView as close to the iOS settings view as possible:

How do i create the space between different sections? What\'s the best way?

5条回答
  •  难免孤独
    2021-01-13 12:17

    First of all the iOS Settings doesn't use the ViewForSection otherwise the Section view would be placed in the top tableView.

    You can return an empty containerView cell for that specific indexPath and stop didSelect in it, but remember to include the empty cells to the array you are using for other cells.

提交回复
热议问题