How can I retain the editing in the search result with UISearchDisplayController?
Posted
by wal
on Stack Overflow
See other posts from Stack Overflow
or by wal
Published on 2010-04-04T18:31:20Z
Indexed on
2010/04/04
18:33 UTC
Read the original article
Hit count: 536
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 search
Image of the table after the searching (editing mode again)
© Stack Overflow or respective owner