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)
Created by https://github.com/STShenZhaoliang/STPickerView on 16/2/15.
Copyright © 2016年 shentian. All rights reserved.