城市选择控件(含城市ID),城市及ID为国家统计局最新数据
用法示例:
1.导入头文件
#import "XPXCityPickerVC.h"
2.创建城市选择对象
XPXCityPickerVC *city = [[XPXCityPickerVC alloc] init];
city.locationCity = @"上海";
city.selectCityNameAndId = ^(NSString *cityName, NSString *cityId) {
NSLog(@"%@ %@",cityName, cityId);
};
[self.navigationController pushViewController:city animated:YES];
项目GitHub链接:
https://github.com/leoxpx/XPXCityPicker#
1.png
2.png
3.png