diff --git a/iphone/Maps/Classes/Editor/MWMEditorViewController.mm b/iphone/Maps/Classes/Editor/MWMEditorViewController.mm index 3ab787f098..421d88e40e 100644 --- a/iphone/Maps/Classes/Editor/MWMEditorViewController.mm +++ b/iphone/Maps/Classes/Editor/MWMEditorViewController.mm @@ -399,12 +399,16 @@ void registerCellsForTableView(vector const & cells, UITab } case MWMPlacePageCellTypeBuildingLevels: { + NSString * placeholder = [NSString stringWithFormat:L(@"editor_storey_number"), + osm::EditableMapObject::kMaximumLevelsEditableByUsers]; + NSString * errorMessage = [NSString stringWithFormat:L(@"error_enter_correct_storey_number"), + osm::EditableMapObject::kMaximumLevelsEditableByUsers]; MWMEditorTextTableViewCell * tCell = static_cast(cell); [tCell configWithDelegate:self icon:nil text:@(m_mapObject.GetBuildingLevels().c_str()) - placeholder:L(@"editor_storey_number") - errorMessage:L(@"error_enter_correct_storey_number") + placeholder:placeholder + errorMessage:errorMessage isValid:isValid keyboardType:UIKeyboardTypeNumberPad]; break;