All Projects → CrystalMarch → CountryPickerView

CrystalMarch / CountryPickerView

Licence: other
A simple country code picker on iOS, support chinese,english,spanish,national flag,ISO 3166-1 and calling code.(一个简洁的iOS国家代码选择器,支持中文、英语、西班牙语、国旗、ISO 3166-1、国际电话区号) your can search the ISO 3166 code,calling code or country name,the picker view will refresh automatically according to the content of your search.(你可以搜索ISO 3166码,电话区号或者国家名字,pikerView将会…

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to CountryPickerView

international-telephone-input
Integration to Magento 2 a jQuery plugin for entering and validating international telephone numbers.
Stars: ✭ 26 (+0%)
Mutual labels:  country-flags, country-codes
PhoneCountryCodePicker
An iOS tableview picker for PhoneCountryCode (English & Chinese supported)
Stars: ✭ 31 (+19.23%)
Mutual labels:  country-flags, country-codes
Alerts And Pickers
Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date...
Stars: ✭ 5,267 (+20157.69%)
Mutual labels:  country-picker, pickerview
Columbus
A feature-rich country picker for iOS, tvOS and watchOS.
Stars: ✭ 23 (-11.54%)
Mutual labels:  country-picker
RESTCountries.NET
.NET Standard wrapper library around the API provided by REST Countries https://restcountries.com. The world in .NET 🔥.
Stars: ✭ 33 (+26.92%)
Mutual labels:  country-data
PhoneNumberKit
Android Kotlin library to parse and format international phone numbers. Country code picker.
Stars: ✭ 124 (+376.92%)
Mutual labels:  country-codes
go-types
Library providing opanapi3 and Go types for store/validation and transfer of ISO-4217, ISO-3166, and other types.
Stars: ✭ 14 (-46.15%)
Mutual labels:  country-codes
Pgpickerview
PGPickerView是将UIPickerView的弯曲弧度变成直列表,可以是单列表,多列表,还可以修改选中label的字体颜色等。
Stars: ✭ 199 (+665.38%)
Mutual labels:  pickerview
country-codes
Validates 2 & 3 character country codes.
Stars: ✭ 25 (-3.85%)
Mutual labels:  country-codes
Nager.Country
Worldwide Country Informations (ISO-3166-1 Alpha2, ISO-3166-1 Alpha3, ISO 639-1)
Stars: ✭ 68 (+161.54%)
Mutual labels:  country-codes
states
Create country-year/month/day panels consistent with the COW or Gleditsch & Ward independent states lists
Stars: ✭ 13 (-50%)
Mutual labels:  country-codes
countriesNowAPI
CountriesNow is an Open source API for retrieving geo-information for countries, including their states, cities, population, etc. 🌎
Stars: ✭ 78 (+200%)
Mutual labels:  country-codes
django-countries-plus
Django model & fixture representing all top level country data from Geonames.org
Stars: ✭ 40 (+53.85%)
Mutual labels:  country-codes
flutter country picker
A flutter package to select a country from a list of countries.
Stars: ✭ 43 (+65.38%)
Mutual labels:  country-picker
paper-countries
Select Dropdown with list of countries with flags and autocomplete
Stars: ✭ 16 (-38.46%)
Mutual labels:  country-flags
Protractorview
A semicircular seekbar view for selecting angle from 0° to 180° ✨
Stars: ✭ 204 (+684.62%)
Mutual labels:  pickerview
Flag Icon Css
🎏 A curated collection of all country flags in SVG — plus the CSS for easier integration
Stars: ✭ 7,982 (+30600%)
Mutual labels:  country-flags
hdx-python-country
Utilities to map between country and region codes and names and to match administrative level names from different sources. Also utilities for foreign exchange enabling obtaining current and historic FX rates for different currencies
Stars: ✭ 16 (-38.46%)
Mutual labels:  country-codes
flag-icons-rails
flag-icon-css sass gem for use in Ruby/Rails projects.
Stars: ✭ 32 (+23.08%)
Mutual labels:  country-flags
localized-countries
🌐 Country code to name mappings for several languages
Stars: ✭ 18 (-30.77%)
Mutual labels:  country-codes

CountryPickerView

A simple country code picker on iOS, support chinese,english,spanish,national flag,ISO 3166-1 and calling code.(一个简洁的iOS国家代码选择器,支持中文、英语、西班牙语、国旗、ISO 3166-1、国际电话区号) your can search the ISO 3166 code,calling code or country name,the picker view will refresh automatically according to the content of your search.(你可以搜索ISO 3166码,电话区号或者国家名字,pikerView将会根据你搜索的内容自动更新搜索结果)

Effect picture

alt text

Installation

CocoaPods

Add to your Podfile:

Swift:

use_frameworks!
pod 'CountryPickerViewSwift'

And then:

pod install

Import the framework in your code:

import CountryPickerViewSwift

Quick start

         let countryView = CountrySelectView.shared
        countryView.show()
//        countryView.dismiss() //dismiss the picker view
        countryView.barTintColor = .gray //default is green
        countryView.searchBarPlaceholder = "phone code" //default is "search"
        countryView.displayLanguage = .chinese //default is english
        countryView.countryNameFont = UIFont.systemFont(ofSize: 18) //default is  UIFont.systemFont(ofSize: 17)
        countryView.countryNameColor = .brown //default is black
        countryView.countryPhoneCodeFont = UIFont.systemFont(ofSize: 10)//default is  UIFont.systemFont(ofSize: 14)
        countryView.countryNameColor = .black //default is gray
        countryView.selectedCountryCallBack = { countryDic in
            print(countryDic)
            /* countrydic format like
                 [
                      "en": "Angola",
 +                    "es": "Angola",
                      "zh": "安哥拉",
                      "locale": "AO",
                      "code": 244
                     "countryImage": UIImage
                 ]
             
             */
        }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].