jivyCoder / JWAddressPickerView

封装好的地址选择器 使用类方法调用 方便快捷

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JWAddressPickerView

封装好的地址选择器 使用类方法调用 方便快捷

1.单数组调用方法,只需传一个数组即可

 NSArray *array = @[@"哈哈",@"我",@"你们",@"他",@"哎呦,不错哦",@"也是醉了",@"嗯呢",@"叮咚",@"xxx",@"xxxx",@"666666",@"6翻了"];
 [SinglePickerView showWithDataArray:array block:^(NSString *str, NSInteger index) {
        [btn setTitle:str forState:UIControlStateNormal];
 }];

singlePicker.gif

2地址选择器调用方法

[JWAddressPickerView showWithAddressBlock:^(NSString *province, NSString *city, NSString *area) {
        NSString *title = [NSString stringWithFormat:@"%@-%@-%@",province,city,area];
        [btn setTitle:title forState:UIControlStateNormal];
    }];

addressPicker.gif

安装说明

CocoaPods

在你工程的 Podfile 文件中添加如下一行,并执行 pod install 或 pod update。

pod 'JWAddressPickerView'

License

JWAddressPickerView is released under the MIT license. See LICENSE for details.

About

封装好的地址选择器 使用类方法调用 方便快捷

License:MIT License


Languages

Language:Objective-C 97.0%Language:Ruby 3.0%