草庐IT

ios - 警告 : Attempt to present <UIAlertController: 0x7facd3946920> on <. ..> 已经呈现(空)

我在UITableView上设置了长按手势,显示包含单元格文本的UIAlertController。当出现UIAlertController时,我收到此警告:Attempttopresentonwhichisalreadypresenting(null)根据我的理解,MainTaskView(UITableView)已经呈现了一个View,所以它不应该呈现第二个View,即UIAlertController。所以我尝试了this解决方案来自类似的问题。它不起作用,因为我收到相同的警告。我该怎么做才能解决此警告?代码见下:funclongPressedView(gestureRecogn