model:didSetValid:withValidationFailureText: method

Called to inform the adapter that the field's valid state has changed.

Syntax

- ( void ) model : ( id< SMPOpenUIFieldModel > ) model didSetValid : ( BOOL ) valid withValidationFailureText : ( NSString * ) text

Parameters

Usage

The field has either become invalid and the user needs to be informed with the validation message or valid and any previous validation failure text needs to be hidden. The validation message will contain information that tells the user why their field is invalid.