AGCountryCode
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
Author
Antonio González, [email protected]
License
AGCountryCode is available under the MIT license. See the LICENSE file for more info.