文章来源:淘论文网   发布者: 毕业设计   浏览量: 28



还可以点击去查询以下关键词:
[完美]    [三级]    [联动]    [定制]    [城市]    [地区]    [选择器]    [完美三级联动定制城市地区选择器]   

项目介绍:

LZCityPicker

一个简单的全国城市地区选择器, 完美实现三级联动, 不会因为滑动引起crash, 使用简单.
继承自'UIView', 可定制性高, 内部由多个视图实现, 子视图使用懒加载模式, 不必担心多余的视图被创建.

使用

初始化十分简单, 只需要调用我提供的方法即可, 不需要手动添加视图, 方法内实现了视图添加, 只需要调用方法后, 配置一些需要的属性即可:

例如:

// 初始化视图 LZCityPickerView *picker = [LZCityPickerView showInView:self.view didSelectWithBlock:^(NSString *address, NSString *province, NSString *city, NSString *area) { // 选择结果回调 self.addressLabel.text = address; NSLog(@'%@--%@--%@--%@',address,province,city,area); }]; // 配置属性 picker.autoChange = YES; picker.backgroundImage = [UIImage imageNamed:@'40fe711f9b754b596159f3a6.jpg']; picker.textAttributes = @{NSFontAttributeName:[UIFont systemFontOfSize:16],NSForegroundColorAttributeName:[UIColor whiteColor]}; picker.titleAttributes = @{NSFontAttributeName:[UIFont systemFontOfSize:16],NSForegroundColorAttributeName:[UIColor whiteColor]}; 示意图


说明:附件为demo, https://github.com/LQQZYY/LZCityPicker下载, 如有bug, 修改后会提交到github, 请移步下载, 如果对您有用, 可以star一个, 谢谢!

开题报告开题报告


这里还有:


还可以点击去查询:
[完美]    [三级]    [联动]    [定制]    [城市]    [地区]    [选择器]    [完美三级联动定制城市地区选择器]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/7787.docx
  • 上一篇:高度模仿Android毕业设计 Studio 登录界面动画
  • 下一篇:STLoad毕业设计ingGroup