From dce25fef4393e0ce37c614dd3dbcfecd62283c73 Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Fri, 25 Oct 2019 10:48:17 +0200 Subject: [PATCH] fix view: searchBar of ContactListView --- Classes/ContactsListView.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Classes/ContactsListView.m b/Classes/ContactsListView.m index 2b5c35c99..ced8c4167 100644 --- a/Classes/ContactsListView.m +++ b/Classes/ContactsListView.m @@ -122,6 +122,16 @@ static UICompositeViewDescription *compositeDescription = nil; [ContactSelection setNameOrEmailFilter:@""]; _searchBar.showsCancelButton = (_searchBar.text.length > 0); + int y = _searchBar.frame.origin.y + _searchBar.frame.size.height; + [tableController.tableView setFrame:CGRectMake(tableController.tableView.frame.origin.x, + y, + tableController.tableView.frame.size.width, + tableController.tableView.frame.size.height)]; + [tableController.emptyView setFrame:CGRectMake(tableController.emptyView.frame.origin.x, + y, + tableController.emptyView.frame.size.width, + tableController.emptyView.frame.size.height)]; + if (tableController.isEditing) { tableController.editing = NO; }