{"id":23900696,"url":"https://github.com/pcjbird/qpdialcodepickerview","last_synced_at":"2025-04-10T20:54:56.595Z","repository":{"id":62451462,"uuid":"95763570","full_name":"pcjbird/QPDialCodePickerView","owner":"pcjbird","description":"International Dial Code Picker View for Country or Area  国家或地区国际区号选择器","archived":false,"fork":false,"pushed_at":"2019-06-04T01:58:08.000Z","size":7629,"stargazers_count":19,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T18:44:57.737Z","etag":null,"topics":["area","calling","code","country","country-flags","dail","emoji","flag","international","picker"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pcjbird.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-29T09:50:31.000Z","updated_at":"2024-07-12T10:39:34.000Z","dependencies_parsed_at":"2022-11-01T23:45:25.336Z","dependency_job_id":null,"html_url":"https://github.com/pcjbird/QPDialCodePickerView","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcjbird%2FQPDialCodePickerView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcjbird%2FQPDialCodePickerView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcjbird%2FQPDialCodePickerView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcjbird%2FQPDialCodePickerView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcjbird","download_url":"https://codeload.github.com/pcjbird/QPDialCodePickerView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248298020,"owners_count":21080313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["area","calling","code","country","country-flags","dail","emoji","flag","international","picker"],"created_at":"2025-01-04T20:36:36.736Z","updated_at":"2025-04-10T20:54:56.538Z","avatar_url":"https://github.com/pcjbird.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](https://github.com/pcjbird/QPDialCodePickerView/raw/master/logo.png)\n[![Build Status](http://img.shields.io/travis/pcjbird/QPDialCodePickerView/master.svg?style=flat)](https://travis-ci.org/pcjbird/QPDialCodePickerView)\n[![Pod Version](http://img.shields.io/cocoapods/v/QPDialCodePickerView.svg?style=flat)](http://cocoadocs.org/docsets/QPDialCodePickerView/)\n[![Pod Platform](http://img.shields.io/cocoapods/p/QPDialCodePickerView.svg?style=flat)](http://cocoadocs.org/docsets/QPDialCodePickerView/)\n[![Pod License](http://img.shields.io/cocoapods/l/QPDialCodePickerView.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0.html)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/pcjbird/QPDialCodePickerView)\n[![GitHub release](https://img.shields.io/github/release/pcjbird/QPDialCodePickerView.svg)](https://github.com/pcjbird/QPDialCodePickerView/releases)\n[![GitHub release](https://img.shields.io/github/release-date/pcjbird/QPDialCodePickerView.svg)](https://github.com/pcjbird/QPDialCodePickerView/releases)\n[![Website](https://img.shields.io/website-pcjbird-down-green-red/https/shields.io.svg?label=author)](https://pcjbird.github.io)\n\n# QPDialCodePickerView \n\n### International Dial Code Picker View for Country or Area 国家或地区国际区号选择器\n   \n## 特性 / Features\n\n1.自定义确定按钮背景颜色。\n\n2.自定义确定按钮标题。\n\n3.支持多种地区名称显示格式:根据当前地区本地化所有地区名称／根据地区自身本地化地区名称/根据美国 (US) 地区本地化所有地区名称。\n\n4.可配置是否显示灰色背景蒙版。\n\n5.可配置是否显示圆角。\n\n6.默认按钮“确定”已经国际化，请确保主工程项目支持该语言国际化选项，在项目 `PROJECT` - `Localizations` 中添加。\n\n7.当前地区及当前时区的地区会显示在选择器的最前面。\n\n## 演示 / Demo \n\n\u003cp align=\"center\" \u003e\n  \u003cimg src=\"https://github.com/pcjbird/QPDialCodePickerView/raw/master/demo.gif\" title=\"demo\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\" \u003e\n  \u003cimg src=\"https://github.com/pcjbird/QPDialCodePickerView/raw/master/demo2.gif\" title=\"demo\"\u003e\n\u003c/p\u003e\n\n## 安装 / Installation\n\n方法一：直接下载, 打开工作区 `QPDialCodePickerView.xcworkspace`, 选择 Target `QPDialCodePickerView-Universal`进行编译，在根目录下的 `product` 目录下会生成 `QPDialCodePickerView.framework` 和 `QPDialCodePickerView.bundle`, 将这两个文件添加到您的项目中即可。\n\n方法二：`QPDialCodePickerView` is available through CocoaPods. To install it, simply add the following line to your Podfile:\n\n```\npod \"QPDialCodePickerView\"\n```\n\n方法三： 使用Carthage安装\n\n`Cartfile`如下:\n```\ngithub \"pcjbird/QPDialCodePickerView\"\n```\n\n## 使用 / Usage\n\n```\n __weak typeof (UIButton*) weakBtn = self.btnDialCode;\n QPDialCodePickerView *pickerView = [[QPDialCodePickerView alloc] initWithAreaFormat:QPDialCodeAreaNameFormatCurrentLocale complete:^(QPDialCodeObject *item) {\n     [weakBtn setTitle:[NSString stringWithFormat:@\"+%@\", item.dial_code] forState:UIControlStateNormal];\n }];\n pickerView.roundCorner = YES;\n [pickerView show];\n```\n\n## 关注我们 / Follow us\n\n\u003ca href=\"https://itunes.apple.com/cn/app/iclock-一款满足-挑剔-的翻页时钟与任务闹钟/id1128196970?pt=117947806\u0026ct=com.github.pcjbird.QPDialCodePickerView\u0026mt=8\"\u003e\u003cimg src=\"https://github.com/pcjbird/AssetsExtractor/raw/master/iClock.gif\" width=\"400\" title=\"iClock - 一款满足“挑剔”的翻页时钟与任务闹钟\"\u003e\u003c/a\u003e\n\n\u003ca href=\"https://itunes.apple.com/cn/app/%E8%90%8C%E9%B1%BC%E8%BE%A8%E8%89%B2-%E4%B8%80%E6%AC%BE%E6%9C%89%E8%B6%A3%E7%9A%84%E9%A2%9C%E8%89%B2%E8%AF%86%E5%88%AB%E4%B8%8E%E4%BB%A3%E7%A0%81%E7%94%9F%E6%88%90%E5%B7%A5%E5%85%B7/id1234015415?pt=117947806\u0026ct=com.github.pcjbird.QPDialCodePickerView\u0026mt=8\"\u003e\u003cimg src=\"https://github.com/pcjbird/QPDialCodePickerView/raw/master/Color Sniffer.png\" width=\"686\" title=\"Color Sniffer - 一款有趣的颜色识别与代码生成工具\"\u003e\u003c/a\u003e\n\n\u003ca href=\"https://itunes.apple.com/cn/app/iclock-simplest-always-best/id1128196970?pt=117947806\u0026ct=com.github.pcjbird.QPDialCodePickerView\u0026mt=8\"\u003e\u003cimg src=\"https://github.com/pcjbird/QPDialCodePickerView/raw/master/iClock_appinn.png\" title=\"iClock - 一款满足“挑剔”的翻页时钟与任务闹钟\"\u003e\u003c/a\u003e\n\n[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=https://github.com/pcjbird/QPDialCodePickerView)\n[![Twitter Follow](https://img.shields.io/twitter/follow/pcjbird.svg?style=social)](https://twitter.com/pcjbird)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcjbird%2Fqpdialcodepickerview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcjbird%2Fqpdialcodepickerview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcjbird%2Fqpdialcodepickerview/lists"}