UITableviewcell 点击present vc 延时
2020-04-16 本文已影响0人
喵喵粉
现象:
点击cell
调用present(vc, animated: true, completion: nil)
弹窗出现延时或者没反应,但是触摸UI时就会弹窗
cell
设置了selectionStyle = .none
方法:
- 在
didSelectRowAt
中调用deselectRow
或者
- 主线程异步弹窗
DispatchQueue.main.async {
present(vc, animated: true, completion: nil)
}