MMMatchingTextFieldValidator Class Reference
Inherits from | MMCompareTextFieldValidator : NSObject |
Declared in | MMMatchingTextFieldValidator.h MMMatchingTextFieldValidator.m |
Overview
A concrete validator that compares two text fields and
ensures that the contents of the text fields match.
Instance Methods
initWithFirstTextField:withSecondTextField:withValidationMessage:
- Initializes a comparator validator with the text fields that are to
- (id)initWithFirstTextField:(UITextField *)textField1 withSecondTextField:(UITextField *)textField2 withValidationMessage:(NSString *)errorMessage
Discussion
be compared and the validation error message to be shown if validation
fails.
*
@param textField1 The first text field to compare.
@param textField2 The second text field to compare.
@param errorMessage The validation message to be shown if validation fails.
*
- @return The comparator validator.
Declared In
MMCompareTextFieldValidator.h