Giter VIP home page Giter VIP logo

jfcityselector's Introduction

JFCitySelector

  • 几行代码即可将集三级城市选择、定位、搜索和字母索引于一身的城市选择器集成到你的项目中,极其简单轻便!

JFCitySelector效果展示:

JFCitySelector效果展示.gif

JFCitySelector使用方法:

  • 下载JFCitySelector,将Demo中的JFCityViewController文件夹拖到你的项目中。

  • 引入头文件

#import "JFCityViewController.h"
  • 实例化JFCityViewController
  • 遵循JFCityViewControllerDelegate
  • 实现代理方法
- (void)cityName:(NSString *)name;
  • 修改Info.plist文件

    1、获取定位权限:

    Privacy - Location Always Usage Description        类型为	String
    
    Privacy - Location When In Use Usage Description   类型为	String
    

    2、本地化(搜索按钮的英文变成中文):

    将Localization native development region   value值改成China
    

注意: 因为此项目使用了MasonryFMDB,所以需要在你的项目中导入MasonryFMDB开源框架,导入方法就不再赘述!

这样你就完成了JFCitySelector城市选择器的集成工作,仅此而已!

Blog:zhifenx

jfcityselector's People

Watchers

Rickie Lambert avatar  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.