AddressViewController
public class AddressViewController: UIViewController,
CountrySelectionViewControllerDelegate,
UITextFieldDelegate
A view controller that allows the user to enter address information.
-
Address View
Declaration
Swift
public let addressView: AddressView!
-
Delegate
Declaration
Swift
public weak var delegate: AddressViewControllerDelegate?
-
Returns a newly initialized view controller with the cardholder’s name and billing details state specified.
Declaration
Swift
public init(initialCountry: String, initialRegionCode: String? = nil)
-
Returns a newly initialized view controller with the nib file in the specified bundle.
Declaration
Swift
public override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?)
-
Returns an object initialized from data in a given unarchiver.
Declaration
Swift
required public init?(coder aDecoder: NSCoder)
-
Called after the controller's view is loaded into memory.
Declaration
Swift
override public func viewDidLoad()
-
Notifies the view controller that its view is about to be added to a view hierarchy.
Declaration
Swift
public override func viewWillAppear(_ animated: Bool)
-
Notifies the view controller that its view is about to be removed from a view hierarchy.
Declaration
Swift
public override func viewWillDisappear(_ animated: Bool)
-
Called to notify the view controller that its view has just laid out its subviews.
Declaration
Swift
public override func viewDidLayoutSubviews()
-
Undocumented
Declaration
Swift
public func setCountrySelected(country: String, regionCode: String)
-
Executed when an user select a country.
Declaration
Swift
public func onCountrySelected(country: String, regionCode: String)
-
Tells the delegate that editing stopped for the specified text field.
Declaration
Swift
public func textFieldDidEndEditing(_ textField: UITextField)
-
Undocumented
Declaration
Swift
public func setFields(address: CkoAddress, phone: CkoPhoneNumber)