xcode - How to remove the first top border of the table in swift -
i have created left side menu. static table view 6 rows.
as can see here, there first top border - number (1) - of table view. try rid of using code below make color of border similar background in willdisplaycell didn't work:
if(indexpath.row == 0){ cell.layer.bordercolor = deselectedcolor.cgcolor }
any idea remove first top border?
thank you
edit:
i have solution somehow still facing little bit of problem.
var border = calayer() border.frame = cgrectmake(0, 99, cgrectgetwidth(cell.frame), 1) border.backgroundcolor = bordercolor.cgcolor cell.layer.addsublayer(border)
i turn off separator main story board , try redraw bottom border each cell. worked great first cell did not have bottom line , not figure out...
Comments
Post a Comment