AGCountryCode 0.0.8

AGCountryCode 0.0.8

Maintained by Antonio Gonzalez.



AGCountryCode

Build Status Version License Platform

Installation

AGCustomControls is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'AGCountryCode'

Description

A custom UIPickerView to provide to the user a list of countries.

To use

To create a view to show the country picker

    let countryView = AGCountryCodeView()

The CountryPickerViewDelegate notificates when user selects a country

public protocol AGCountryCodeViewDelegate {
    
    /// Every time the user selects a country, the delegate will call this function.
    ///
    /// - Parameters:
    ///   - view: Sender (AGCountryCodeView)
    ///   - countryName: The name of the country selected
    ///   - countryCode: The code of the country selected
    ///   - countryDialCode: The dial code of the country selected
    ///   - flag: The flag of the country selected
    func countryPickerSelectedCountry(view: AGCountryCodeView,
                                      countryName:String?,
                                      countryCode:String?,
                                      countryDialCode:String?,
                                      flag:UIImage?)
}

Screenshots

GitHub Logo GitHub Logo

Author

Antonio González, [email protected]

License

AGCountryCode is available under the MIT license. See the LICENSE file for more info.