Ability to save selections from UISearchDisplayController

Originator:greg
Number:rdar://15241297 Date Originated:10/16/2013
Status:Open Resolved:
Product:iOS Product Version:iOS 7
Classification:Feature (New) Reproducible:Always
 
Summary:
UISearchDisplayController calls the private method _deselectAllNonMultiSelectRowsAnimated when the view appears, which is not always desired. This is the equivalent to having clearsSelectionOnViewWillAppear = YES for a UITableViewController. By forcing the private method _deselectAllNonMultiSelectRowsAnimated, there's no way to customize whether or not the selected cell in the UISearchDisplayController can remain selected.

One solution might be to expose a property similar to clearsSelectionOnViewWillAppear.

Steps to Reproduce:
1. User searches in a UISearchDisplayController and is presented with a list of choices.
2. User taps a cell to get more detail, and a new view is popped in a UINavigationController
3. User presses the UINavigationController backButton to return to the search because they tapped the wrong item.
4. User thinks about selecting the next item

Expected Results:
User knows which item they just selected, and chooses a different one, if the developer adds that functionality.

Actual Results:
Selected item is always deselected, so user must guess which item was previously selected.

Version:
iOS 7.

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!