Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with Swipe to Delete in Table Controller #2

Open
blakewatters opened this issue Aug 16, 2012 · 0 comments
Open

Bug with Swipe to Delete in Table Controller #2

blakewatters opened this issue Aug 16, 2012 · 0 comments

Comments

@blakewatters
Copy link
Member

This was reported on the RKGithub repository:

I think there is another problem concerning the swipe-to-delete option.
When I set tableController.canEditRows = Yes
the delete button appears within the cell but nothing happend after clicking it. Anyone now how to solve this?

edit:
It's working if I create my tableController as an RKTableController instead of the RKFetchedResultsTableController

Comment from @creationist:

The swipe to delete is working within the RKTableController because it's just deleting the row out of the table.

The problem is within the tableView:commitEditingStyle:forRowAtIndexPath: methode of the RKFetchedResultsTableController. There you ask for the appropriate mapping but you get back a nill object therefore you get never inside the if where the delete request ist posted.

Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant