Coder Social home page Coder Social logo

countrycode's Introduction

CountryCode

最近开发中用到选择国家信息的功能,用于添加电话号码的国家代号前缀,所以,在网上趴了一下,找到的是这样的一个字典。

但是我们在使用tableView的时候,如果做分组功能,对于中文,我们还需要获取中文的拼音首字母,并且针对搜索功能做优化。
考虑到国家信息基本不会更变,所以,持久化了这样一个Json文件:

下次在用到这个的时候,可以自己加载这个json文件,到数组,当然你也可以根据需求,分组。

countrycode's People

Contributors

mohuilin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.