ValidationError
public class ValidationError: NSObject
The ValidationError class is used for representing errors of a failed validation. It contains the text field, error label, and error message of a failed validation.
-
the textField of the field
Declaration
Swift
public let textField:UITextField -
the error label of the field
Declaration
Swift
public var errorLabel:UILabel? -
the error message of the field
Declaration
Swift
public let errorMessage:String -
Initializes
ValidationErrorobject with a textField and error.Declaration
Swift
public init(textField:UITextField, error:String)Parameters
textFieldUITextField that holds textField.
errorMessageString that holds error message.
Return Value
An initialized object, or nil if an object could not be created for some reason that would not result in an exception.
-
Initializes
ValidationErrorobject with a textField, errorLabel, and errorMessage.Declaration
Swift
public init(textField:UITextField, errorLabel:UILabel?, error:String)Parameters
textFieldUITextField that holds textField.
errorLabelUILabel that holds error label.
errorMessageString that holds error message.
Return Value
An initialized object, or nil if an object could not be created for some reason that would not result in an exception.
ValidationError Class Reference