Adem
Adem

Reputation: 9429

Hide section separator in UITableView

I use this for hiding separator between rows

self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;

but, there is still separator on top of section header. How can I hide them too?

Upvotes: 0

Views: 811

Answers (2)

Sivajee Battina
Sivajee Battina

Reputation: 4174

With Storyboard:

enter image description here

Without Storyboard:

self.tableView.separatorColor = UIColor.clearColor()

Upvotes: 1

iDeveloper
iDeveloper

Reputation: 150

Try

self.tableView.separatorColor = UIColor.clear

It should work

Upvotes: 1

Related Questions