delete lines between UITableViewCells in UITableView

Martin picture Martin · Oct 30, 2014 · Viewed 65.2k times · Source

I've created an UITableView with UITableViewCell. 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

THX!

Answer

instaable picture instaable · Oct 30, 2014

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 None enter image description here