【发布时间】:2019-04-02 22:18:25
【问题描述】:
我有一个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 用于侧边菜单,并且保持突出显示不是我想要的行为。
谢谢!
【问题讨论】:
标签: ios swift uitableview highlight visual-effects