PostCodeInputField
public class PostCodeInputField: JudoPayInputField
The PostCodeInputField is an input field configured to detect, validate and present post codes of various countries.
-
Delegate method implementation
Declaration
Swift
public func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -> BoolParameters
textFieldText field
rangeRange
stringString
Return Value
Boolean to change characters in given range for a text field
-
Check if this input field is valid
Declaration
Swift
public override func isValid() -> BoolReturn Value
True if valid input
-
Subclassed method that is called when text field content was changed
Declaration
Swift
public override func textFieldDidChangeValue(textField: UITextField)Parameters
textFieldThe text field of which the content has changed
-
Title of the receiver input field
Declaration
Swift
public override func title() -> StringReturn Value
A string that is the title of the receiver
-
Width of the title
Declaration
Swift
public override func titleWidth() -> IntReturn Value
Width of the title
PostCodeInputField Class Reference