Skip to content

Bug with Swipe to Delete in Table Controller #2

@blakewatters

Description

@blakewatters

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions