- How do I remove a separator line in table view?
- How do I add a space between table view cells in Swift?
- How do I remove lines from a table view cell in Swift?
How do I remove a separator line in table view?
To hide UITableViewCell separator completely, simply set it's colour to UIColor. clearColor(). This will make the cell separator not visible.
How do I add a space between table view cells in Swift?
The way I achieve adding spacing between cells is to make numberOfSections = "Your array count" and make each section contains only one row. And then define headerView and its height. This works great.
How do I remove lines from a table view cell in Swift?
So, to remove a cell from a table view you first remove it from your data source, then you call deleteRows(at:) on your table view, providing it with an array of index paths that should be zapped. You can create index paths yourself, you just need a section and row number.