ios - How do I remove the selection border on a table view cell? -
as can see, there's border when selecting. want remove border. i've tried:
func tableview(tableview: uitableview, cellforrowatindexpath indexpath: nsindexpath) -> uitableviewcell { let cell = roomstableview.dequeuereusablecellwithidentifier("roomscell", forindexpath: indexpath) as! roomtableviewcell cell.room = rooms[indexpath.row] cell.layer.borderwidth = 0.0 cell.contentview.layer.borderwidth = 0.0 cell.layoutmargins = uiedgeinsetszero return cell }
that doesn't work.
self.roomstableview.separatorstyle = uitableviewcellseparatorstyle.none
set.
clarification: @ middle row. it's selected. see border above , below couple? that's want remove.
i'm going assume want remove separator tableview. can with:
tableview.seperatorstyle = uitableviewseparatorstyle.none
Comments
Post a Comment