TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Apr 2016 |
Maintained by Rafael Nobre.
Country picker table view controller for iOS7+.
It has convinient search and dynamic fonts support.
In order to install CountryPicker
, you'll need to copy the CountryPicker
folder into your Xcode project.
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.
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]
CountryPicker
is licensed under the MIT license.