把UIAlertController的弹出主动设置成在主线程中执行
dispatch_async(dispatch_get_main_queue(), ^{
[self presentViewController: alertController animated: YES completion: nil];
});
把UIAlertController的弹出主动设置成在主线程中执行
dispatch_async(dispatch_get_main_queue(), ^{
[self presentViewController: alertController animated: YES completion: nil];
});
本文标题:iOS开发UIAlertController响应慢
本文链接:https://www.haomeiwen.com/subject/awjqqqtx.html
网友评论