delete lines between UITableViewCells in UITableView delete lines between UITableViewCells in UITableView xcode xcode

delete lines between UITableViewCells in UITableView


Using Objective-C, we have:

[self.tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];

for Swift 3:

self.tableView.separatorStyle = .none

for Swift 2:

self.tableView.separatorStyle = UITableViewCellSeparatorStyle.None

OR:

if you are using the InterfaceBuilder, you can set the tableView's Separator property to Noneenter image description here


Within InterfaceBuilder you can set the Separator property to None or do it programmatically by setting the property separatorStyle of your table view to UITableViewCellSeparatorStyleNone.


Swift 3:

tableView.separatorStyle = UITableViewCellSeparatorStyle.none