1
在我的UITableViewController的自定义类,我在cellRowRowAtIndexPath
使用此:的UITableViewController selectionStyle没有不工作
cell?.selectionStyle = .none
选择颜色但是仍然灰色
在我的UITableViewController的自定义类,我在cellRowRowAtIndexPath
使用此:的UITableViewController selectionStyle没有不工作
cell?.selectionStyle = .none
选择颜色但是仍然灰色
它应该是这样的,
let cell = tableView.dequeueReusableCell(withIdentifier: "Cell")! as
UITableViewCell
cell.selectionStyle = .none
试试这个'cell.selectionStyle = .none' – Rajat
你可以使用cell.selectionStyle = .none或者您可以设置从stroyBoard –
单元选择的风格没有哪一个版本SWIFT 2或3 ? – vaibhav