RNStatePicker 0.0.5

RNStatePicker 0.0.5

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布上次发布2016年4月

Rafael Nobre 维护。



  • 作者:
  • Rafael Nobre

CountryPicker

iOS7+ 的国家选择表格视图控制器。
它支持便捷的搜索和动态字体。

支持的平台

  • iOS 7+

安装

为了安装 CountryPicker,您需要将 CountryPicker 文件夹复制到您的 Xcode 项目中。

用法

为了使用 CountryPicker,您需要 #import "SLCountryPickerViewController.h" 并将以下代码包含到您的项目中

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];

在完成块中获得国家和国家代码字符串。

贡献者 & 贡献者

美丽的旗帜图像来自 https://github.com/koppi/iso-country-flags-svg-collection

CountryPickerDmitry Shmidt 编写。网站:www.shmidtlab.com
Twitter:http://twitter.com/shmidtlab

E-mail [email protected]

许可证

CountryPicker 采用 MIT 许可证许可。