diff --git a/iphone/Maps/Classes/Editor/MWMEditorTextTableViewCell.h b/iphone/Maps/Classes/Editor/MWMEditorTextTableViewCell.h index 760add8f68..7910f1ec99 100644 --- a/iphone/Maps/Classes/Editor/MWMEditorTextTableViewCell.h +++ b/iphone/Maps/Classes/Editor/MWMEditorTextTableViewCell.h @@ -6,6 +6,7 @@ icon:(UIImage *)icon text:(NSString *)text placeholder:(NSString *)placeholder + keyboardType:(UIKeyboardType)keyboardType lastCell:(BOOL)lastCell; @end diff --git a/iphone/Maps/Classes/Editor/MWMEditorTextTableViewCell.mm b/iphone/Maps/Classes/Editor/MWMEditorTextTableViewCell.mm index b04d986379..204b16e4cf 100644 --- a/iphone/Maps/Classes/Editor/MWMEditorTextTableViewCell.mm +++ b/iphone/Maps/Classes/Editor/MWMEditorTextTableViewCell.mm @@ -19,6 +19,7 @@ icon:(UIImage *)icon text:(NSString *)text placeholder:(NSString *)placeholder + keyboardType:(UIKeyboardType)keyboardType lastCell:(BOOL)lastCell { self.delegate = delegate; @@ -29,6 +30,7 @@ self.backgroundColor = isNameCell ? [UIColor clearColor] : [UIColor white]; self.textField.text = text; self.textField.placeholder = placeholder; + self.textField.keyboardType = keyboardType; self.bottomSeparatorLeadingOffset.priority = lastCell ? UILayoutPriorityDefaultHigh : UILayoutPriorityDefaultLow; } diff --git a/iphone/Maps/Classes/Editor/MWMEditorViewController.mm b/iphone/Maps/Classes/Editor/MWMEditorViewController.mm index b03f55b3ae..1ed7d55bb3 100644 --- a/iphone/Maps/Classes/Editor/MWMEditorViewController.mm +++ b/iphone/Maps/Classes/Editor/MWMEditorViewController.mm @@ -272,6 +272,7 @@ NSString * reuseIdentifier(MWMPlacePageCellType cellType) icon:[UIImage imageNamed:@"ic_placepage_phone_number"] text:entityValue placeholder:L(@"phone") + keyboardType:UIKeyboardTypePhonePad lastCell:lastCell]; break; } @@ -282,6 +283,7 @@ NSString * reuseIdentifier(MWMPlacePageCellType cellType) icon:[UIImage imageNamed:@"ic_placepage_website"] text:entityValue placeholder:L(@"website") + keyboardType:UIKeyboardTypeURL lastCell:lastCell]; break; } @@ -292,6 +294,7 @@ NSString * reuseIdentifier(MWMPlacePageCellType cellType) icon:[UIImage imageNamed:@"ic_placepage_email"] text:entityValue placeholder:L(@"email") + keyboardType:UIKeyboardTypeEmailAddress lastCell:lastCell]; break; } @@ -320,6 +323,7 @@ NSString * reuseIdentifier(MWMPlacePageCellType cellType) icon:nil text:entityValue placeholder:L(@"name") + keyboardType:UIKeyboardTypeDefault lastCell:lastCell]; break; } @@ -340,6 +344,7 @@ NSString * reuseIdentifier(MWMPlacePageCellType cellType) icon:nil text:entityValue placeholder:L(@"building") + keyboardType:UIKeyboardTypeDefault lastCell:lastCell]; break; }