我有一个UITableView
设置,我正在探索突出显示的所有不同选项,UITableViewCell
我想知道以下几点:
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
.
.
cell.selectionStyle = .gray
return cell
}
What happens now is that when a cell is selected it is highlighted with a grey color, I was wondering, is it possible to deselect the cell after about 0.5 sec?
基本上是否可以使单元格仅短暂闪烁,以便用户知道他与单元格交互,但它不会保持选中状态?我将此 tableView 用于侧面菜单,并且保持突出显示不是我想要的行为。
谢谢!