forked from organicmaps/organicmaps
[iOS] Hide the keyboard when scroll bookmarks search results.
This commit is contained in:
parent
5ba4a002e9
commit
1f07ded6fe
1 changed files with 8 additions and 0 deletions
|
@ -28,6 +28,7 @@ using namespace std;
|
|||
@interface BookmarksVC () <UITableViewDataSource,
|
||||
UITableViewDelegate,
|
||||
UISearchBarDelegate,
|
||||
UIScrollViewDelegate,
|
||||
MWMBookmarksObserver,
|
||||
MWMLocationObserver,
|
||||
MWMKeyboardObserver,
|
||||
|
@ -859,4 +860,11 @@ using namespace std;
|
|||
self.noResultsBottom.constant = -keyboardHeight;
|
||||
}
|
||||
|
||||
#pragma mark - UIScrollViewDelegate
|
||||
|
||||
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
|
||||
{
|
||||
[self.searchBar resignFirstResponder];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Reference in a new issue