First of all, I think you need to set the background color first, so that you will not confuse the dividing line of the section or the background color of the tableview
Usually when we are making custom cells or section headers and footers, we try to replace them with a view with a height of 1-3 points, so that we have more space to control. It’s what we usually call a blindfold
If you still can’t solve it, it’s best to post the code
First of all, I think you need to set the background color first, so that you will not confuse the dividing line of the section or the background color of the tableview
Usually when we are making custom cells or section headers and footers, we try to replace them with a view with a height of 1-3 points, so that we have more space to control. It’s what we usually call a blindfold
If you still can’t solve it, it’s best to post the code
lz Can you try calling this code during viewDidLoad?
I use iOS8 SDK, the default is the effect you need:

tableview changed to plain
Set the
tableView
ofseparate style
to成none
, and then add a custom bottom line in the customcell
. This is the method I use!