Search Results Сontroller presented from UISearchController has wrong contentInset.top value
Originator: | azyktulek | ||
Number: | rdar://35994281 | Date Originated: | 12/12/2017 |
Status: | Open | Resolved: | No |
Product: | UIKit | Product Version: | 11 |
Classification: | Reproducible: | Yes |
Area: UIKit Summary: Search Results Сontroller presented from UISearchController has wrong contentInset.top value for iOS 11 Steps to Reproduce: 1) Have UIViewController in navigation stack 2) Create UISearchController instance with specified searchResultsController as instance of UITableViewController 3) present searchController from viewController with using `present(searchController, animated: true, completion: nil)` Expected Results: 4) presented tableView has a wrong contentInset.top value for iOS 11. There's a visible gap above the first cell below navigation bar Actual Results: 4) presented tableView doesn't have a gap between first cell and navigation bar Version/Build: iOS 11. Works fine on iOS 10 Configuration: iOS 11 with view controller in navigation stack. Check attached sample code https://github.com/gn0meavp/UISearchController-Issue-2
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!