US2ValidatorUIDelegate Protocol Reference
Declared in | US2ValidatorUIDelegate.h |
Overview
The main delegate protocol which serves the interested instance with information about changed validation states. The delegate inherits from UITextViewDelegate.
Tasks
-
– validatorUIDidChange:
Will be called when the text in the text field changes. Has its origin in listening for UITextFieldTextDidChangeNotification.
-
– validatorUI:changedValidState:
Will be called when a status changes from true to false or false to true.
-
– validatorUI:violatedConditions:
Will be called if the text field check failed.
Instance Methods
validatorUI:changedValidState:
Will be called when a status changes from true to false or false to true.
- (void)validatorUI:(id<US2ValidatorUIProtocol>)validatorUI changedValidState:(BOOL)isValid
Parameters
- isValid
Returns the status of the validation check
- validatorTextView
Instance of the sending validator text field of type US2ValidatorTextView
Declared In
US2ValidatorUIDelegate.h
validatorUI:violatedConditions:
Will be called if the text field check failed.
- (void)validatorUI:(id<US2ValidatorUIProtocol>)validatorUI violatedConditions:(US2ConditionCollection *)conditions
Parameters
- conditions
Collection of type US2ConditionCollection listing all violated conditions.
- validatorTextView
Instance of the sending validator text field of type US2ValidatorTextView
Declared In
US2ValidatorUIDelegate.h
validatorUIDidChange:
Will be called when the text in the text field changes. Has its origin in listening for UITextFieldTextDidChangeNotification.
- (void)validatorUIDidChange:(id<US2ValidatorUIProtocol>)validatorUI
Parameters
- validatorUI
Instance of the sending validator text UI of type US2ValidatorTextField
Declared In
US2ValidatorUIDelegate.h