Problem: When the TableView cell does not display the entire screen (the screen has the remaining), the splitter line is displayed where the cell is not displayed. Under normal circumstances, there should be no split line if there is no cell. As shown: The left image is experiencing problems, the right image is the desired result
Workaround:
1 We can prohibit all cells from displaying the split line by code, i.e.
Self.tableView.separatorStyle = Uitableviewcellseparatorstylenone; then customize the cell to add a line inside the cell.
But it's too much trouble.
2 using the set separator boundary can be easily resolved.
1) First set the TableView overall separator left edge for a very large number, that is, let it appear outside the screen, if set to 1000, such as:
2) Each cell re-sets the separator left boundary to a normal value such as 15, to cover the overall settings of the TableView, as
OC TableView Split Line (separator) display problem