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

current table view

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...

after deleting separator , redraw


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -