[ios] search

This commit is contained in:
Igor Khmurets 2014-03-24 20:42:26 +03:00 committed by Alex Zolotarev
parent 42df3f412e
commit 49ff653946

View file

@ -265,7 +265,8 @@ static void OnSearchResultCallback(search::Results const & results)
self.tableView.alpha = 1;
self.tableView.minY = 0;
} completion:^(BOOL finished){
[self.tableView setContentOffset:CGPointMake(0, -self.tableView.contentInset.top) animated:YES];
if (!self.searchBar.resultText)
[self.tableView setContentOffset:CGPointMake(0, -self.tableView.contentInset.top) animated:YES];
}];
}
else