views:

23

answers:

0

I want to search a table in editing mode, but when I type a letter the variable tableView.editing is changed to NO. And when I cancel the search, the tableView.editing return to YES. I'd like to retain the editing YES in the result of the search.

I put breakpoint in several methods. Until the filterContentForSearchText method, the variable is YES, but in the cellForRowAtIndexPath, it is NO.

Image of the table in editing mode just before type a letter in the search bar.

Image of the table in editing mode just before type a letter in the search bar.

Image of the search

Image of the search

Image of the table after the searching (editing mode again)

Image of the table after the searching (editing mode again)