Latest 0.1.0
Homepage https://github.com/949478479/LXCountryCallingCodePicker
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

有国旗图案的国家区号选择器,包含 250 个国家地区,支持中英文,支持通过地区名称、拼音、代码和区号搜索。

国旗是 emojiFlags 文件夹内提供了 250 个国家地区的 png 格式国旗图片。

Example

pod 'LXCountryCallingCodePicker'
import LXCountryCallingCodePicker
CallingCodeMetadataStore.language = .chinese
let picker = CallingCodePickerController()
picker.navigationBar.tintColor = .black
picker.title = "选择国际区号"
picker.didSelectMetadata = { [weak self] metadata in
    guard let self = self else { return }
    self.codeLabel.text = metadata.regionFlag + " " + metadata.callingCode
    self.dismiss(animated: true, completion: nil)
}
present(picker, animated: true, completion: nil)

Latest podspec

{
    "name": "LXCountryCallingCodePicker",
    "version": "0.1.0",
    "summary": "u6709u56fdu65d7u56feu6848u7684u56fdu5bb6u533au53f7u9009u62e9u5668uff0cu5305u542b 250 u4e2au56fdu5bb6u5730u533auff0cu652fu6301u901au8fc7u540du79f0u3001u62fcu97f3u3001u4ee3u7801u3001u533au53f7u641cu7d22u3002",
    "homepage": "https://github.com/949478479/LXCountryCallingCodePicker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u5415u5c0fu603c": "[email protected]"
    },
    "source": {
        "git": "https://github.com/949478479/LXCountryCallingCodePicker.git",
        "tag": "0.1.0"
    },
    "swift_versions": [
        "4.2",
        "5.0",
        "5.0"
    ],
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "LXCountryCallingCodePicker/Classes/**/*",
    "resource_bundles": {
        "LXCountryCallingCodePicker": [
            "LXCountryCallingCodePicker/Assets/*.{xcassets,json,storyboard}"
        ]
    },
    "swift_version": "5.0"
}

Pin It on Pinterest

Share This