Latest 1.0.3
Homepage https://github.com/xllyll/XYCountryCode
License MIT
Platforms ios 8.0
Authors

XYCountryCode XYCountryCode XYCountryCode
XYCountryCode

国家代码选择器,支持中英文、国旗

1.导入XYCountryCode类

pod


pod 'XYCountryCode'

三行代码集成国家区号选择功能
类型


XYCountryCodeShowTypeNone //默认为列表
XYCountryCodeShowTypePicker //picker模式

代码如下:

XYCountryCodeViewController *vc = [[XYCountryCodeViewController alloc] initWithShowType:XYCountryCodeShowTypePicker];
[vc showViewController:self];
[vc setChooseCodeRespose:^(NSString *code) {
    self.label.text = code;
}];

—————————————–

image
image
image
image

——————by xllyll—————-

Latest podspec

{
    "name": "XYCountryCode",
    "version": "1.0.3",
    "summary": "XYCountryCode u56fdu5bb6u4ee3u7801,u56fdu9645u533au53f7,u56fdu65d7,u663eu793au65b9u5f0fuff1au5217u8868uff0cpicker",
    "description": "u56fdu5bb6u4ee3u7801,u56fdu9645u533au53f7,u56fdu65d7, u6ce8u518cu767bu5f55u9009u62e9u56fdu5bb6,u663eu793au65b9u5f0fuff1au5217u8868uff0cpicker,u754cu9762u4f20u503cu91c7u7528u4ee3u7406delegateu548cblocku4e24u79cdu65b9u5f0f,u81eau7531u9009u62e9",
    "homepage": "https://github.com/xllyll/XYCountryCode",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u6768u5362u94f6": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/xllyll/XYCountryCode.git",
        "tag": "1.0.3"
    },
    "source_files": "XYCountryCode/XYCountryCode/*.{h,m}",
    "resources": "XYCountryCode/XYCountryCode/res/*.{png,bundle}"
}

Pin It on Pinterest

Share This