In swift, sometimes I prefer not to disable selection because I am using didSelectAtIndexPath... But at the same time I don't want the cell to be highlighted, so I do:
let clearView = UIView()
clearView.backgroundColor = UIColor.clear
UITableViewCell.appearance().selectedBackgroundView = clearView
No comments:
Post a Comment