ios - How do I remove the selection border on a table view cell? -


screenshot

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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -