Latest 1.0.1
Homepage https://github.com/tbl00c/TLCityPicker
License MIT
Platforms ios 7.0, requires ARC
Authors

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

Latest podspec

{
    "name": "IBCityPicker",
    "version": "1.0.1",
    "summary": "u4e2du56fdu57ceu5e02u9009u62e9u5668uff0cu81eau52a8u7ba1u7406u6700u8fd1u8bbfu95eeu57ceu5e02uff0cu5febu901fu96c6u6210u3002",
    "homepage": "https://github.com/tbl00c/TLCityPicker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "libokun": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/iblacksun/TLCityPicker.git",
        "tag": "1.0.1"
    },
    "source_files": "TLCityPicker/*.{h,m,plist}",
    "requires_arc": true
}

Pin It on Pinterest

Share This