// // 建立一个肯定按钮”必定要注意不能在提醒控制器的按钮的点击方法内部用到提醒控制器本身”,不能把下面这句话放在block内部”否则会死循环,致使警告控制器不能销毁"it
UITextField *textField = alertC.textFields.firstObject;io
UIAlertAction *ok = [UIAlertAction actionWithTitle:@"肯定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
hero.name = textField.text;
[self.tableView reloadData];
// [self.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
// [alertC dismissViewControllerAnimated:NO completion:nil];table
}];循环