Issue: (When deleting a section in TableView)
Terminating app due to uncaught exception ' nsinternalinconsistencyexception ', Reason: ' Invalid update:invalid number of S Ections. The number of sections contained in the table view after the update (5) must is equal to the number of sections contained In the table view before the update (5), plus or minus the number of sections inserted or deleted (0 inserted, 1 deleted). ‘
Solve:
[self. TableView beginupdates]; //must add start update and end update, must delete data in middle
[self. TableView deletesections: Indexset withrowanimation: Uitableviewrowanimationright];
[_arraytablecelldataremoveobjectatindex: row];
[self. TableView endupdates];
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
' Invalid update:invalid number of sections. The number of sections contained in the table view aft