bug:在點(diǎn)擊tableViewCell調(diào)用UIAlertController時(shí),彈出框要過(guò)好幾秒才會(huì)彈出
解決一:
你設(shè)置了 cell.selectionStyle = UITableViewCellSelectionStyleNone;將其改為UITableViewCellSelectionStyleDefault,或者去掉就行;
解決二:
將present的代碼放在主線程中執(zhí)行
dispatch_async(dispatch_get_main_queue(), ^{
[self presentViewController: alertController animated: YES completion: nil];
});