将弹出的代码直接放到主线程执行
dispatch_async(dispatch_get_main_queue(), ^{
[self presentViewController:AlertView animated:YES completion:nil];
});
在点击tableview上的一个cell后弹出alert,会发现有延迟的问题或者点击没有反应,随便再点击一下才会弹出
原文:https://www.cnblogs.com/fendoulushangdefenqing/p/8359962.html