KWMPickView.h 1 KB
Newer Older
houweibin 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
//
//  KWMPickView.h
//  iYeJu
//
//  Created by kollway1 on 15/7/13.
//  Copyright (c) 2015年 YeJu. All rights reserved.
//

#import <UIKit/UIKit.h>

@class KWMPickView;
@protocol PickViewDelegate <NSObject>
@optional
-(void)kwm_OnSelectYearTime:(NSString *)year selectMonthTime:(NSString *) month pickView:(KWMPickView *)pickView;
@end


@interface KWMPickView : UIView<UIPickerViewDelegate,UIPickerViewDataSource>

@property(nonatomic,weak) IBOutlet UIView *vContentView;
@property(nonatomic,weak) IBOutlet UIButton *btnConfirm;
@property(nonatomic,weak) IBOutlet UIPickerView *pvPickView;
@property(nonatomic,weak) IBOutlet UIView *vBg;
@property(nonatomic,weak) IBOutlet UILabel *lbTitle;
@property(nonatomic,weak) id<PickViewDelegate> delegate;

@property(nonatomic) NSMutableArray *yearArray;
@property(nonatomic) NSMutableArray *monthArray;
@property(nonatomic) NSString *title;

-(IBAction)onClickConfirm:(id)sender;
-(void)hidePickView;
-(void)showPickerView:(NSString*) year setSelectMonth:(NSString *) month;


@end