Dimming View Covers UISearchBar in UISearchController when searchBarStyle is UISearchBarStyleMinimal
Originator: | greg | ||
Number: | rdar://17315670 | Date Originated: | 06/14/2014 |
Status: | Open | Resolved: | |
Product: | iOS SDK | Product Version: | 12A4265u |
Classification: | UI/Usability | Reproducible: | Always |
Summary: When presenting the UISearchController when its searchBar's barStyle is set to UISearchBarStyleMinimal, the dimming view covers the searchBar, though it is still editable. This does not happen with the default style. Steps to Reproduce: (Attached) 1. Make a new project based on the iPhone MasterDetailView template 2. In MasterViewController, add these properties: @property (strong) UISearchController *searchController; @property (strong) DetailViewController *searchResultsController; 3. Add this to viewDidLoad in MasterViewController: self.searchResultsController = [DetailViewController new]; self.searchController = [[UISearchController alloc] initWithSearchResultsController:self.searchResultsController]; self.searchController.searchBar.frame = CGRectMake(0, 0, 320, 44); self.searchController.searchBar.searchBarStyle = UISearchBarStyleMinimal; self.tableView.tableHeaderView = self.searchController.searchBar; (Note that DetailViewController doesn't know about UISearchControllerDelegate, etc, but it's just to prove a point, since the docs say that you should not present the dimming view when displaying results in the same view controller). 4. Run app 5. Tap inside search bar Expected Results: Everything except search bar is dimmed Actual Results: Everything is dimmed Version: iOS 8 12A4265u Notes: Configuration: iPhone Simulator Attachments: 'SearchBarNavControllerBug.zip' was 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!