diff --git a/iphone/Maps/UI/Editor/Cells/MWMEditorAdditionalNameTableViewCell.m b/iphone/Maps/UI/Editor/Cells/MWMEditorAdditionalNameTableViewCell.m index 65d3d9b433..d482166529 100644 --- a/iphone/Maps/UI/Editor/Cells/MWMEditorAdditionalNameTableViewCell.m +++ b/iphone/Maps/UI/Editor/Cells/MWMEditorAdditionalNameTableViewCell.m @@ -5,6 +5,7 @@ static CGFloat const kErrorLabelHeight = 16; @interface MWMEditorAdditionalNameTableViewCell () +@property(weak, nonatomic) IBOutlet UIStackView * stackView; @property(weak, nonatomic) IBOutlet UILabel * languageLabel; @property(weak, nonatomic) IBOutlet UITextField * textField; @property(weak, nonatomic) IBOutlet UILabel * errorLabel; @@ -90,4 +91,13 @@ static CGFloat const kErrorLabelHeight = 16; return YES; } +- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event +{ + // Allow to tap on the whole cell to start editing. + UIView * view = [super hitTest:point withEvent:event]; + if (view == self.stackView) + return self.textField; + return view; +} + @end diff --git a/iphone/Maps/UI/Editor/Cells/MWMEditorAdditionalNameTableViewCell.xib b/iphone/Maps/UI/Editor/Cells/MWMEditorAdditionalNameTableViewCell.xib index 706f679c41..12d22ec0f2 100644 --- a/iphone/Maps/UI/Editor/Cells/MWMEditorAdditionalNameTableViewCell.xib +++ b/iphone/Maps/UI/Editor/Cells/MWMEditorAdditionalNameTableViewCell.xib @@ -43,6 +43,9 @@ + + +