From 900e0a568940d4873cc6a6803c4d4a554f9bd9e7 Mon Sep 17 00:00:00 2001 From: VladiMihaylenko Date: Fri, 29 Jan 2016 13:26:19 +0300 Subject: [PATCH] [ios] Fixed keyboard appearance. --- iphone/Maps/Classes/MapsAppDelegate.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iphone/Maps/Classes/MapsAppDelegate.mm b/iphone/Maps/Classes/MapsAppDelegate.mm index 43c93eb1ef..e2050102c1 100644 --- a/iphone/Maps/Classes/MapsAppDelegate.mm +++ b/iphone/Maps/Classes/MapsAppDelegate.mm @@ -658,6 +658,9 @@ void InitLocalizedStrings() pageControl.pageIndicatorTintColor = [UIColor blackHintText]; pageControl.currentPageIndicatorTintColor = [UIColor blackSecondaryText]; pageControl.backgroundColor = [UIColor white]; + + UITextField * textField = [UITextField appearance]; + textField.keyboardAppearance = [UIColor isNightMode] ? UIKeyboardAppearanceDark : UIKeyboardAppearanceDefault; }