Hide home view search by default.

This commit is contained in:
Matthew Chen 2018-08-16 11:42:31 -04:00
parent 5f0c1aafbc
commit f261a47bd3
1 changed files with 2 additions and 0 deletions

View File

@ -407,6 +407,8 @@ NSString *const kArchivedConversationsReuseIdentifier = @"kArchivedConversations
// Setting tableHeader calls numberOfSections, which must happen after updateMappings has been called at least once.
OWSAssert(self.tableView.tableHeaderView == nil);
self.tableView.tableHeaderView = self.searchBar;
// Hide search bar by default. User can pull down to search.
self.tableView.contentOffset = CGPointMake(0, CGRectGetHeight(searchBar.frame));
ConversationSearchViewController *searchResultsController = [ConversationSearchViewController new];
searchResultsController.delegate = self;