Changing selected scope button in UISearchBar does not toggle UISearchResultsUpdating updateSearchResultsForSearchController:

Originator:greg
Number:rdar://17969101 Date Originated:08/09/2014
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 8b5
Classification: Reproducible:Always
 
Summary:
Changing the scope of a UISearchBar in a UISearchController should call 
UISearchResultsUpdating updateSearchResultsForSearchController:. The documentation for this method states, "This method is automatically called whenever the search bar becomes the first responder or changes are made to the text or scope of the search bar." The former is working, the latter is not.

Steps to Reproduce:
Run attached example app and look at console when switching between scope buttons. You won't see output. All code is in MasterViewController viewDidLoad and updateSearchResultsForSearchController:.  Or...

1. New project with a UISearchController with scope buttons
2. Implement the UISearchResultsUpdating protocol
3. Run and toggle scope buttons


Expected Results:
updateSearchResultsForSearchController: called when toggling scope buttons

Actual Results:
updateSearchResultsForSearchController: not called

Version:
iOS8b5

Notes:
https://devforums.apple.com/thread/235803

Configuration:
iPhone simulator

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!