UITableviewcell 点击present vc 延时

2020-04-16  本文已影响0人  喵喵粉

现象:
点击cell 调用present(vc, animated: true, completion: nil)弹窗出现延时或者没反应,但是触摸UI时就会弹窗

cell设置了selectionStyle = .none

方法:

  1. didSelectRowAt中调用deselectRow

或者

  1. 主线程异步弹窗
DispatchQueue.main.async {
    present(vc, animated: true, completion: nil)
}
上一篇 下一篇

猜你喜欢

热点阅读