I am using UISearchController to search for data in my tableview. I am not using table view controller. I would like to hide the navigation bar when my search b
UISearchController
Not the best solution but just to workaround.
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { return searchController.isActive ? 20.0f : 0.0f; }