MRSelectCountry
MRSelectCountry copied to clipboard
An easy way to get country data which includes the country name and dial code for iOS Developers
MRSelectCountry
An easy way to get country data which includes the country name and dial code for iOS Developers
Screenshots

Requirements
- iOS 10.0+
Installation
CocoaPods (recommended)
# For latest release in cocoapods
pod 'MRSelectCountry'
Without CocoaPods
- Why not CocoaPods?
- Drag all files from /MRSelectCountry/MRSelectCountry/ to your project, which contains .json, .swift and .storyboard files
How to Use
let controller = MRSelectCountry.getMRSelectCountryController(delegate: self)
self.navigationController?.pushViewController(controller, animated: true)
Delegate Method
You can use MRSelectCountryDelegate to get selected country
func didSelectCountry(controller: MRSelectCountryTableViewController, country: MRCountry) {
// Get country data
print(country.description)
// Dismiss/Pop the MRSelectCountryTableViewController
controller.navigationController?.popViewController(animated: true)
}
Questions & Help
Use Issues for that. Before asking a question, see if it has already been answered
License
MRSelectCountry is released under MIT License
Please provide attribution, it is greatly appreciated