Merge pull request #329 from igrechuhin/ig-master

[ios] Hid keyboard on direction view.
This commit is contained in:
Vlad Mihaylenko 2015-10-21 19:46:05 +03:00
commit 0c61f1eba1

View file

@ -316,9 +316,11 @@ typedef NS_ENUM(NSUInteger, MWMPlacePageManagerState)
- (void)showDirectionViewWithTitle:(NSString *)title type:(NSString *)type
{
MWMDirectionView * directionView = self.directionView;
UIView * ownerView = self.ownerViewController.view;
directionView.titleLabel.text = title;
directionView.typeLabel.text = type;
[self.ownerViewController.view addSubview:directionView];
[ownerView addSubview:directionView];
[ownerView endEditing:YES];
[directionView setNeedsLayout];
[self.delegate updateStatusBarStyle];
[(MapsAppDelegate *)[UIApplication sharedApplication].delegate disableStandby];