so I just updated to iOS 11.2, and now my UISearchController
's search bar is messed up. When search is active, the background behind the search bar area goes invisible / clear / transparent.
I built a test project to make sure I wasn't crazy. Here's the original setup:
navigationBar.translucent = YES;
navigationBar.barTintColor = [UIColor orangeColor];
self.navigationItem.searchController = myUISearchController;
Here's how it should appear:
But if I use large titles and a background image, then the result is this:
navigationBar.prefersLargeTitles = YES;
[navigationBar setBackgroundImage:bgImage forBarMetrics:UIBarMetricsDefault];
If anyone finds a solution to this, I'd really appreciate the help.