Sample-UISearchController
Sample-UISearchController copied to clipboard
Request: Hide search bar until user pulls down or clicked a Search button
Hide search bar by default until user pull down or click on a button to focus on it. For the latter, I tried self.tableView.contentOffset = CGPointMake(0, 0 - self.tableView.contentInset.top); [self.searchController.searchBar becomeFirstResponder]; Which worked perfectly. However the former is still an issue - somehow it isn't listening to me