I have a UISearchController with a UITableViewController as a searchResultsController, the UISearchBar of this sear
Add
self.extendedLayoutIncludesOpaqueBars = YES;
on viewDidLoad method
I noticed that the UISearchController works perfectly in one of the my views but not the other. The problem was with the UITableViewController and not the UIViewController. If you switch to a UIViewController with a UITableView inside it and properly constrained there are no issues. I implemented mine with a XIB and it worked perfectly.