SkillAgentSearch skills...

TLCityPicker

中国城市选择器

Install / Use

/learn @tbl00c/TLCityPicker
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

#TLCityPicker 中国城市选择器

Usage

TLCityPickerController *cityPickerVC = [[TLCityPickerController alloc] init];
[cityPickerVC setDelegate:self];

// 设置定位城市
cityPickerVC.locationCityID = @"1400010000";

// 最近访问城市,如果不设置,将自动管理
//  cityPickerVC.commonCitys = [[NSMutableArray alloc] initWithArray: @[@"1400010000", @"100010000"]];

// 热门城市,需手动设置
cityPickerVC.hotCitys = @[@"100010000", @"200010000", @"300210000", @"600010000", @"300110000"];

// 支持push、present方式跳入,但需要有UINavigationController
[self presentViewController:[[UINavigationController alloc] initWithRootViewController:cityPickerVC] animated:YES completion:^{  
}];

DEMO

image

Related Skills

View on GitHub
GitHub Stars82
CategoryDevelopment
Updated2y ago
Forks15

Languages

Objective-C

Security Score

75/100

Audited on Jun 27, 2023

No findings