alekseyn/EasyTableView

Deletion of rows does not seem to be implemented

Closed this issue · 3 comments

I may have my setup wrong, but everything else is working except deletes. I will always get an NSInternalInconsistencyException due to the EasyTableView requesting a row that does not exist after deletion. Hacking it and forcing a call to [easyTableView.tableView reloadData] does not help. Please let me know if I may have missed something. I like the component, but I do need to be able to delete. Thanks.

It sounds like your model is out of sync with what is getting returned in your implementation of the numberOfCellsForEasyTableView: delegate. There is nothing in EasyTableView that would prevent row deletion. If you have some sample code I would be happy to look at it.

Ah, you're right. My mistake. I ended up not using EasyTableView, as I was getting confused with its delegate vs. what I know about the standard delegate methods. I did use the technique, though. Thanks.

You can always forward unimplemented delegate method calls in EasyTableView by adding your own stubs. But I'm glad it worked out regardless.