BzwPicker.h 2.05 KB
Newer Older
xwenliang's avatar
xwenliang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
//
//  BzwPicker.h
//  PickerView
//
//  Created by Bao on 15/12/14.
//  Copyright © 2015年 Microlink. All rights reserved.
//

#import <UIKit/UIKit.h>

#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)


typedef void(^backBolock)(NSDictionary * );

@interface BzwPicker : UIView<UIPickerViewDataSource,UIPickerViewDelegate>

@property (strong,nonatomic)UIPickerView *pick;

@property(nonatomic,copy)backBolock bolock;

@property (strong, nonatomic) NSDictionary *pickerDic;//一开始进来的字典

@property (strong, nonatomic) NSArray *provinceArray;//省、市
@property (strong, nonatomic) NSArray *cityArray;//市,县
@property (strong, nonatomic) NSArray *townArray;//县,区


@property (strong, nonatomic) NSDictionary *selectedDic;//3级联动时候用到的
@property (strong,nonatomic)NSArray *selectArry;//2级联动时候用的

@property (strong,nonatomic)UIButton *leftBtn;//取消
@property (strong,nonatomic)UIButton *rightBtn;

@property(strong,nonatomic)NSString *leftStr;
@property(strong,nonatomic)NSString *centStr;
@property(strong,nonatomic)NSString *rightStr;


//用来判断进来的类型
@property(strong,nonatomic)id value;

@property(assign,nonatomic)BOOL Correlation;//判断有没有没有关联

@property(nonatomic,strong)NSString *numberCorrela;//关联是2行 还是3行

@property(nonatomic,strong)NSArray *noCorreArry;

//创建一个数组来传递返回的值
@property(nonatomic,strong)NSMutableArray *backArry;

@property(assign,nonatomic)BOOL noArryElementBool;

//创建一个数组 接收进来的选择Value

@property(strong,nonatomic)NSArray *selectValueArry;



-(instancetype)initWithFrame:(CGRect)frame dic:(NSDictionary *)dic leftStr:(NSString *)leftStr centerStr:(NSString *)centerStr rightStr:(NSString *)rightStr topbgColor:(NSArray *)topbgColor bottombgColor:(NSArray *)bottombgColor leftbtnbgColor:(NSArray *)leftbtnbgColor rightbtnbgColor:(NSArray *)rightbtnbgColor centerbtnColor:(NSArray *)centerbtnColor selectValueArry:(NSArray *)selectValueArry;


@end