Martin Martin - 1 year ago 112
iOS Question

delete lines between UITableViewCells in UITableView

I've created an

. Between the view cells there are grew lines. I want to delete these lines and don't want to show them, but I don't know how.

I work with Xcode 6.1 and Swift.

Here is a screenshot that displays my screen:

enter image description here


Answer Source

Using objective-C, we have:

[self.tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];

for Swift:

self.tableView.separatorStyle = UITableViewCellSeparatorStyle.None

OR: if you are using the InterfaceBuilder, you can set the tableView's Separator property to None

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download