alekseyn / EasyTableView

Horizontal and vertical scrolling table views for iOS
BSD 3-Clause "New" or "Revised" License
584 stars 157 forks source link

Deletion of rows does not seem to be implemented #1

Closed alariccole closed 13 years ago

alariccole commented 13 years ago

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.

alekseyn commented 13 years ago

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.

alariccole commented 13 years ago

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.

alekseyn commented 13 years ago

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