forked from organicmaps/organicmaps
[ios] Search bar cancel button behavior fix
This commit is contained in:
parent
2c1073f6b9
commit
8ed3666460
2 changed files with 4 additions and 1 deletions
|
@ -125,7 +125,7 @@
|
|||
|
||||
- (void)setSearching:(BOOL)searching
|
||||
{
|
||||
self.searchImageView.animating = searching;
|
||||
[self.searchImageView setAnimating:searching];
|
||||
}
|
||||
|
||||
#define LABEL_MIN_X 23
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue