iOS DeveloperSwift&Objective-C手机移动程序开发

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

2016-11-22  本文已影响2395人  boundlessocean
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;
上一篇 下一篇

猜你喜欢

热点阅读