iOS 地址选择(不要在写地址选择了)

作者: boundlessocean | 来源:发表于2016-11-22 11:38 被阅读2395次
11.jpg
点击进入日期选择器
github地址选择源码

效果:


111.gif

使用方法:

_pickView = [[BLAreaPickerView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 150)];
_pickView.pickViewDelegate = self;
[_pickView bl_show];

代理:

#pragma mark - - BLPickerViewDelegate
- (void)bl_selectedAreaResultWithProvince:(NSString *)provinceTitle city:(NSString *)cityTitle area:(NSString *)areaTitle{
    NSLog(@"%@,%@,%@",provinceTitle,cityTitle,areaTitle);
}

可设置的属性:

/** 标题大小 */
@property (nonatomic, strong)UIFont  *titleFont;
/** 选择器背景颜色 */
@property (nonatomic, strong)UIColor *pickViewBackgroundColor;
/** 选择器头部视图颜色 */
@property (nonatomic, strong)UIColor *topViewBackgroundColor;
/** 取消按钮颜色 */
@property (nonatomic, strong)UIColor *cancelButtonColor;
/** 确定按钮颜色 */
@property (nonatomic, strong)UIColor *sureButtonColor;

相关文章

网友评论

    本文标题:iOS 地址选择(不要在写地址选择了)

    本文链接:https://www.haomeiwen.com/subject/aapppttx.html