ios - Removal of white line under section header in UITableView? -


i'm struggling removing white lines below each custom section header in uitableview, seen below. suggestions? use in tableview.

self.tableview.separatorstyle = uitableviewcellseparatorstyle.none 

the above solves separators between cells, not headers.

the thing have in custom section header

containercellview.backgroundcolor = uicolor(red: 24/255.0, green: 34/255.0, blue: 41/255.0, alpha: 100) 

enter image description here

set heigth header & footer 0.01 solve problem

func tableview(tableview: uitableview, heightforheaderinsection section: int) -> cgfloat {              return 0.01      } 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -