当在我的应用中选择一个 tableview 单元格时,它会保持选中状态,直到选择另一个单元格为止。
如何使 tableview 单元格的突出显示在一两秒后淡出,类似于 Apple 的“查找我的 friend ”应用程序和“查找我的 iPhone”应用程序。将距离从以英里为单位切换为以公里为单位时,您可以看到该单元格突出显示,然后突出显示逐渐消失。
最佳答案
确定是您先搜索了答案吗?
无论如何...
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
tableView.deselectRow(at: indexPath, animated: true)
}
关于ios - 如何淡出表格选择,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42786822/