In my application, I reload my TableView ([tablView reloadData];
) after delete row from TableView then canEditRowAtIndexPath
Method alway
When it comes to me, I analysed as below:
As commented by rmaddy
on Nitin Gohel's
answer:
You should always remove the data from the data source before updating the table.
I feels this is the ideal way.
If you are going to call reloadData
, there is no reason at all to first call deleteRowsAtIndexPath
.
This is also looks correct.
I analysed ambiguity, if I write reloadData
its crashishing but once I write deleteRowsAtIndexPath
it worked well.
Hope someone will emphasise on this issue for its causes etc.