Latest0.0.5
Homepagehttps://github.com/nobre84/RNStatePicker
LicenseMIT
Platformsios 7.0, requires ARC
Authors

CountryPicker

Country picker table view controller for iOS7+.
It has convinient search and dynamic fonts support.

RNStatePickerRNStatePicker

Supported Platforms

  • iOS 7+

Installing

In order to install CountryPicker, you’ll need to copy the CountryPicker folder into your Xcode project.

Usage

In order to use CountryPicker, you’ll need to
#import "SLCountryPickerViewController.h"
and include the following code in your project:

SLCountryPickerViewController *vc = [[SLCountryPickerViewController alloc]init];
vc.completionBlock = ^(NSString *country, NSString *code){
//Your code here
    _countryNameLabel.text = country;
    _countryImageView.image = [UIImage imageNamed:code];
    _countryCodeLabel.text = code;

};
//
[self.navigationController pushViewController:vc animated:YES];

Where in completion block you get country and country code strings.

Credits & Contributors

Beautiful flaga images are taken from https://github.com/koppi/iso-country-flags-svg-collection

CountryPicker was written by Dmitry Shmidt.
Website: www.shmidtlab.com
Twitter: http://twitter.com/shmidtlab

E-mail [email protected]

License

CountryPicker is licensed under the MIT license.

Latest podspec

{
    "name": "RNStatePicker",
    "version": "0.0.5",
    "summary": "State picker table view controller for iOS 7+",
    "description": "Table view controller with searchable list of states with completion block and dynamic fonts support.",
    "license": "MIT",
    "authors": {
        "Rafael Nobre": "[email protected]"
    },
    "homepage": "https://github.com/nobre84/RNStatePicker",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/nobre84/RNStatePicker.git",
        "tag": "0.0.5"
    },
    "source_files": [
        "StatePicker",
        "StatePicker/**/*.{h,m}"
    ],
    "resources": "StatePicker/*.{xcassets,plist}",
    "preserve_paths": "StatePicker/StateFlags.xcassets/*",
    "requires_arc": true
}

Pin It on Pinterest

Share This