The problem is that I wanted to run the UISearchController:
self.searchController = [[UISearchController alloc] initWithSearchResultsController:self];
The solution is to initialize the UISearchController:
self.searchController = [[UISearchController alloc] initWithSearchResultsController:nil];
and leave the storyboard as it is.
source share