I have a UISearchController with a UITableViewController as a searchResultsController, the UISearchBar of this sear
UISearchController
UITableViewController
searchResultsController
UISearchBar
sear
To make this clearer @Lorenzo's answer worked for me.
self.definesPresentationContext = YES;