BillingCountryInputField

public class BillingCountryInputField: JudoPayInputField

The BillingCountryInputField is an input field configured to select a billing country out of a selected set of countries that we currently support.

  • 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 inputField is valid

    Declaration

    Swift

    public override func isValid() -> Bool

    Return Value

    true if valid input

  • Title of the receiver inputField

    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

  • Datasource method for billingCountryPickerView

    Declaration

    Swift

    public func numberOfComponentsInPickerView(pickerView: UIPickerView) -> Int

    Parameters

    pickerView

    PickerView that calls its delegate

    Return Value

    the number of components in the pickerView

  • Datasource method for billingCountryPickerView

    Declaration

    Swift

    public func pickerView(pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int

    Parameters

    pickerView

    Picker view

    component

    A given component

    Return Value

    number of rows in component

  • Delegate method for billingCountryPickerView

    Declaration

    Swift

    public func pickerView(pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String?

    Parameters

    pickerView

    The caller

    row

    The row

    component

    The component

    Return Value

    title of a given component and row

  • Delegate method for billingCountryPickerView that had a given row in a component selected

    Declaration

    Swift

    public func pickerView(pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int)

    Parameters

    pickerView

    The caller

    row

    The row

    component

    The component