[iOS] Hide the keyboard when scroll bookmarks search results.

This commit is contained in:
Daria Volvenkova 2019-09-27 15:01:44 +03:00 committed by Aleksey Belousov
parent 5ba4a002e9
commit 1f07ded6fe

View file

@ -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