0

I want to remove this line in TableView.

I use

tableView.tableFooterView = UIView(frame: CGRect.zero) , 
 tableView.tableFooterView?.isHidden = true, 
 tableView.tableFooterView = nil`, 
 tableView.tableFooterView = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.size.width, height: 1))`,

Set style tableView to grouped and set separator to none is not work.

image

Anbu.Karthik
  • 82,064
  • 23
  • 174
  • 143
Ligament
  • 1
  • 2

4 Answers4

0

use this code inside viewDidLoad()

tableview.separatorStyle = .none
0

Select your UITableView in Storyboard view-controller in attributes inspector, you can change the separator value.

See this for detail information screenshot.

Salman Ghumsani
  • 3,647
  • 2
  • 21
  • 34
Sachin Raut
  • 328
  • 3
  • 13
0

Go to Tableview property -> Select separater in dropbox and select none.

Psnt143
  • 55
  • 8
0

I'm sorry, the problem was on my code, so you could not answer to me.

In the my code i add to the Label in FooterInSection and i do not check.

Thanks for all solution to help me.

Ligament
  • 1
  • 2