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) -> Bool

    Parameters

    textField

    Text field

    range

    Range

    string

    String

    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() -> Bool

    Return 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

    textField

    The text field of which the content has changed

  • Title of the receiver input field

    Declaration

    Swift

    public override func title() -> String

    Return Value

    A string that is the title of the receiver

  • Width of the title

    Declaration

    Swift

    public override func titleWidth() -> Int

    Return Value

    Width of the title