[ios] Search bar cancel button behavior fix

This commit is contained in:
Igor Khmurets 2014-03-27 12:36:02 +03:00 committed by Alex Zolotarev
parent 2c1073f6b9
commit 8ed3666460
2 changed files with 4 additions and 1 deletions

View file

@ -125,7 +125,7 @@
- (void)setSearching:(BOOL)searching
{
self.searchImageView.animating = searching;
[self.searchImageView setAnimating:searching];
}
#define LABEL_MIN_X 23

View file

@ -252,6 +252,9 @@ static void OnSearchResultCallback(search::Results const & results)
- (void)searchBarDidPressCancelButton:(id)searchBar
{
self.searchBar.textField.text = nil;
[self.searchBar setSearching:NO];
[self.tableView reloadData];
[self setActive:NO animated:YES];
}