I have a UITableViewController with a UISearchBar and UISearchDisplayController. That exists inside a Container View in a UIViewController which is in a UINavigationController.
Try setting the definesPresentationContext in viewDidLoad of your TableViewController
definesPresentationContext
viewDidLoad
TableViewController
Swift
override func viewDidLoad() { super.viewDidLoad() definesPresentationContext = true }
Objective-C
- (void)viewDidLoad { [super viewDidLoad]; self.definesPresentationContext = YES; }