UISearchController does not respect UIBarPositionTopAttached/positioned badly when NavigationBar is translucent

Originator:bob
Number:rdar://18517587 Date Originated:01-Oct-2014 04:39 PM
Status:Duplicate of 18148536 Resolved:
Product:iOS SDK Product Version:iOS 8.0.2
Classification:Duplicate of 18148536 Reproducible:100%
 
Summary:
If the navigation bar is not translucent when manually presenting a UISearchController, the search bar calls the UIBarPositioning delegate, sets the bar position property correctly, but then does not render the resulting search bar correctly.

Steps to Reproduce:
See the attached project.
Run in iOS simulator
Click on first cell enter some search text.  Notice positioning of search bar around status bar
Toggle switch to change Navigation bar translucency - repeat above steps

Expected Results:
UISearchController should render correctly no matter what the UINavigationBar translucency status

Actual Results:
When navigation bar is translucent, the search bar does not respect the UIBarPositionTopAttached property

Version:
iOS 8.0.2 12A405, Version 6.0.1 (6A317), Version 8.0 (550.1)

Notes:


Configuration:
iPhone 5, 32GB and iPhone Simulator

Attachments:
'nonTranslucentBefore.png', 'noTranslucentBar-NoSearchText.png', 'noTranslucentBar-SearchText.png', 'translucentBefore.png' and 'SearchDisplayControllerBarPositioning.zip' were successfully uploaded.

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!