UISearchDisplayController gap between overlay and bar
问题 In my app I'm trying to add search functionality. I have table view controller and custom top bar view where I show UISearchBar . The problem is that overlay view is always a bit under the top bar and it adds gap between them: In my table view controller .m file's viewDidLoad : [super viewDidLoad]; LSDropdownViewController *menuCtrl = (LSDropdownViewController *)[self parentViewController]; menuCtrl.topSearchBar.delegate = self; [menuCtrl.topSearchBar setBackgroundColor:[UIColor clearColor]];