代码库> 其他> 城市选择器1.0版本
城市选择器1.0版本
关注
上传者:seohyun 分类:其他(Others)
查看次数:1365 下载次数:242
上传时间:2016-01-15 大小:285 B
开始
导入 "BAddressPickerController.h"

BAddressPickerController *addressPickerController = [[BAddressPickerController alloc] initWithFrame:self.view.frame];

addressPickerController.dataSource = self;

addressPickerController.delegate = self;

[self addChildViewController:addressPickerController]; [self.view addSubview:addressPickerController.view];

实现BAddressPickerDataSource数据源协议
(NSArray*)arrayOfHotCitiesInAddressPicker:(BAddressPickerController *)addressPicker;
实现BAddressPickerDelegate代理协议
(void)addressPicker:(BAddressPickerController *)addressPicker didSelectedCity:(NSString *)city;

(void)beginSearch:(UISearchBar *)searchBar;

(void)endSearch:(UISearchBar *)searchBar;

#相比原来增加了最近访问记录

github地址:https://github.com/onlylin/BAddressPickerDemo.git
收藏
我来说两句
发表评论
您还没有登录!请登录注册
所有评论(0
提示
sina weixin mail 回到顶部