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) -> BoolParameters
textFieldText field
rangeRange
stringString
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() -> BoolReturn Value
true if valid input
-
Title of the receiver inputField
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
-
Datasource method for billingCountryPickerView
Declaration
Swift
public func numberOfComponentsInPickerView(pickerView: UIPickerView) -> IntParameters
pickerViewPickerView 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) -> IntParameters
pickerViewPicker view
componentA 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
pickerViewThe caller
rowThe row
componentThe 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
pickerViewThe caller
rowThe row
componentThe component
BillingCountryInputField Class Reference