Latest 1.0.2
Homepage https://github.com/pcjbird/QPDialCodePickerView
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

logo
Build Status
Pod Version
Pod Platform
Pod License
Carthage compatible
Dependency Status

International Dial Code Picker View for Country or Area 国家或地区国际区号选择器

特性 / Features

1.自定义确定按钮背景颜色。

2.自定义确定按钮标题。

3.支持多种地区名称显示格式:根据当前地区本地化所有地区名称/根据地区自身本地化地区名称/根据美国 (US) 地区本地化所有地区名称。

4.可配置是否显示灰色背景蒙版。

5.可配置是否显示圆角。

6.默认按钮“确定”已经国际化,请确保主工程项目支持该语言国际化选项,在项目 PROJECTLocalizations 中添加。

7.当前地区及当前时区的地区会显示在选择器的最前面。

演示 / Demo

 

 

安装 / Installation

方法一:直接下载, 打开工作区 QPDialCodePickerView.xcworkspace, 选择 Target QPDialCodePickerView-Universal进行编译,在根目录下的 product 目录下会生成 QPDialCodePickerView.frameworkQPDialCodePickerView.bundle, 将这两个文件添加到您的项目中即可。

方法二:QPDialCodePickerView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "QPDialCodePickerView"

方法三: 使用Carthage安装

Cartfile如下:

github "pcjbird/QPDialCodePickerView"

使用 / Usage

 __weak typeof (UIButton*) weakBtn = self.btnDialCode;
 QPDialCodePickerView *pickerView = [[QPDialCodePickerView alloc] initWithAreaFormat:QPDialCodeAreaNameFormatCurrentLocale complete:^(QPDialCodeObject *item) {
     [weakBtn setTitle:[NSString stringWithFormat:@"+%@", item.dial_code] forState:UIControlStateNormal];
 }];
 pickerView.roundCorner = YES;
 [pickerView show];

关注我们 / Follow us

Twitter URL
Twitter Follow

Latest podspec

{
    "name": "QPDialCodePickerView",
    "version": "1.0.2",
    "summary": "International Dial Code Picker View for Country or Area u56fdu5bb6u6216u5730u533au56fdu9645u533au53f7u9009u62e9u5668",
    "description": "X % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % X no                                                                                                                   o no                                                                                                                   o no                                                                                                                   o no                                                                                                                   o no                                                                                                                   o no        ` , . , , , `     ` ,                 . `     ` , , , .                           ` .                      o no        . + - - - - - `   . -                 - ,   ` - - - - ~ ,                       ` , -                      o no        , ~         , -                       - , ` - -       ` ,                       ` , -                      o no        , -           ~ `   .     ` , . ` `   - , . ~                 ` , .       ` , , . - -   ` . , . `          o no        , -           - , . ~   ` - - - - -   - , , -               . - - - , ` ` - - - - - - ` - - - - ,          o no        , -           ~ . . ~   - -     . ~   - , , -             ` - ,     , - , - `   ` , - , ~ , , - ~ `        o no        , -         . ~ ` . ~   - ,     ` ~   - , ` ~ .         . ` ~ .     , - , -     ` , - , ~ , , , , `        o no        . - ` , . , - -   . ~   , - . , - ~   - ,   , - , . , , - ` - - . ` - , . - , . , , - , ~ - , , `          o no        ` , ` , - - .     ` ,     , - , . ,   , .     . , - - , `   ` , - , `     . , - , . ,   . , - , `          o no              ` ` `         `       ` `                 ` ` `           `           ` `           ` ` `            o no                                                                                                                   o no                                                                                                                   o no                                                                                                                   o nX % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % X nnInternational Dial Code Picker View for Country or Area u56fdu5bb6u6216u5730u533au56fdu9645u533au53f7u9009u62e9u5668",
    "homepage": "https://github.com/pcjbird/QPDialCodePickerView",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    },
    "authors": {
        "pcjbird": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/pcjbird/QPDialCodePickerView.git",
        "tag": "1.0.2"
    },
    "source_files": [
        "QPDialCodePickerView/QPDialCodePickerView",
        "QPDialCodePickerView/QPDialCodePickerView/**/*.{h,m}"
    ],
    "public_header_files": [
        "QPDialCodePickerView/QPDialCodePickerView/**/QPDialCodePickerView.h",
        "QPDialCodePickerView/QPDialCodePickerView/**/QPDialCodeObject.h",
        "QPDialCodePickerView/QPDialCodePickerView/**/QPDialCodeAreaNameFormat.h"
    ],
    "resource_bundles": {
        "QPDialCodePickerView": [
            "QPDialCodePickerView/QPDialCodePickerViewResource/*.*"
        ]
    },
    "frameworks": "UIKit",
    "requires_arc": true,
    "pod_target_xcconfig": {
        "OTHER_LDFLAGS": "-lObjC"
    }
}

Pin It on Pinterest

Share This