Latest 1.0.4
Homepage https://github.com/mrazam110/MRSelectCountry
License MIT
Platforms ios 10.0
Authors

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

License
Platform
Version

Screenshots

Screenshot Screenshot Screenshot

Requirements

  • iOS 10.0+

Installation

CocoaPods (recommended)

# For latest release in cocoapods
pod 'MRSelectCountry'

Without CocoaPods

  1. Why not CocoaPods?
  2. 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

Latest podspec

{
    "name": "MRSelectCountry",
    "version": "1.0.4",
    "summary": "Easy way to get country data which includes country name and dial code for iOS Developers",
    "homepage": "https://github.com/mrazam110/MRSelectCountry",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Muhammad Raza Master": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/mrazam110/MRSelectCountry.git",
        "tag": "1.0.4"
    },
    "source_files": "MRSelectCountry/MRSelectCountry/*.{swift}",
    "resources": "MRSelectCountry/MRSelectCountry/*.{png,jpeg,jpg,storyboard,xib,json}"
}

Pin It on Pinterest

Share This