Attempt to delete row containing first responder that refused to resign
I've never seen that message before, but my immediate impulse if I were to see it would be: try delayed performance. Even something as simple as this might be an interesting experiment:
dispatch_async(dispatch_get_main_queue(), ^{
[self.tableView deleteRowsAtIndexPaths:@[indexPath]
withRowAnimation:UITableViewRowAnimationAutomatic];
});
My thought here is, let's not try to delete the row while the text field is still reporting in (i.e. while textFieldEditingDidEnd
is still running); let's give the runloop a chance to finish its cycle.