Skip to content

中国城市三级选择器(支持地区名称和 codeID)

Notifications You must be signed in to change notification settings

niuhaoran/CitySelector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CitySelector-(三级城市选择器-加强版)

使用方法:(联系我:qq->1648305422--亲测可用,好用的话记得给星)

1.将文件夹拖入项目(删去图片)

2.导入头文件 STPickerArea.h

     //一行代码就行
 [STPickerArea shareWithMode:STPickerContentModeBottom].block = ^(NSString *province,NSString *city, 
 NSString *area, NSString *provinceId ,
 NSString *cityId ,NSString *areaId){ // eg:在此读取需要的城市名称和codeID  
   NSLog(@"province:%@,city:%@,area:%@",province,city,area); 
       };
图片效果如下:
  ![Alt text](/img.png)

改写自如下开源库(增加了读取城市Id的功能)

Created by https://github.com/STShenZhaoliang/STPickerView on 16/2/15.
Copyright © 2016年 shentian. All rights reserved.

About

中国城市三级选择器(支持地区名称和 codeID)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published