Embedding in Navigation Controller causes UISearchDisplayController to misbehave

Originator:janine.sisk
Number:rdar://14699421 Date Originated:8-9-13
Status:Closed Resolved:Won't Fix
Product:iOS SDK Product Version:7
Classification: Reproducible:Always
 
I'm attaching two sample projects, one that works correctly and one that does not.

In both cases the search bar from a UISearchDisplayController is positioned over an MKMapView.  The difference between working and not is 1) embedding the view controller in a navigation controller and 2) moving the search bar down from 20 to 64 so that it's no longer under the nav bar.

In the working case you can click in the search bar, type some text, and it will display in the search results table, with the search bar still visible.

In the non-working case there's a shadow covering the search bar as soon as you click in it and when results start displaying the table covers the search bar (though it still accepts input).

You can see screenshots and discussion here:

https://devforums.apple.com/message/864379#864379

Of note is that both sample apps work correctly in iOS6 - it only fails in iOS7.

Apple Response:

There are no plans to address this based on the following:

UISearchDisplayController is no longer supported. The desired functionality should be available with UISearchController and if not (or is not behaving correctly), please file a new bug report.

We are now closing this report.

If you have questions about the resolution, or if this is still a critical issue for you, then please update your bug report with that information.

Please be sure to regularly check new Apple releases for any updates that might affect this issue.

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!