Very strange problem, when executing the default selection of a cell, suddenly found that this sentence does not work
(My scene is: After the current cell side-slip Delete, the previous cell is selected by default)
After a long day, finally found that the culprit is because: this sentence is written in the way of the slide-off event.
Func TableView (_ Tableview:uitableview, Commit Editingstyle:uitableviewcelleditingstyle, Forrowat Indexpath: Indexpath) { //}
Tried a few times, in the normal function of the body to execute this sentence, are normal, here is invalid.
The reason for the moment unexpectedly, speculation is because the cell recovery after the system events blocked the sentence execution
Temporary solution:
1. Transfer the place of execution of this sentence
2, plus a delay processing
The second solution I used, deferred 0.5s execution, found no problem.
Know the reason of the little partner welcome message to inform the next ~3q
IOS executes Tableview.selectrow invalid solution in TableView side-slip Event