美文网首页
给tableViewCell添加选中事件的时候,调用UIAler

给tableViewCell添加选中事件的时候,调用UIAler

作者: white__light | 来源:发表于2018-12-18 15:17 被阅读0次

具体原因我认为是runloop没有及时更新UI。
解决办法
[selfpresentViewController:AlertControlleranimated:YEScompletion:nil];
改为下面的方法:
dispatch_async(dispatch_get_main_queue(), ^{
[selfpresentViewController: AlertControlleranimated: YEScompletion: nil];
});

相关文章

网友评论

      本文标题:给tableViewCell添加选中事件的时候,调用UIAler

      本文链接:https://www.haomeiwen.com/subject/wvllkqtx.html