单军华
2018-03-29 89d748b77b478905732e60f0b4c5807c274b6565
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
//
//  XHDatePickerView.h
//  GoldRich
//
//  Created by WindShan on 2017/2/15.
//  Copyright © 2017年 WindShan. All rights reserved.
//
 
#import <UIKit/UIKit.h>
 
typedef enum
{
    DateStyleShowYearMonthDayHourMinute  = 0,
    DateStyleShowMonthDayHourMinute,
    DateStyleShowYearMonthDay,
    DateStyleShowMonthDay,
    DateStyleShowHourMinute
    
}XHDateStyle; 
 
typedef enum
{
    DateTypeStartDate,
    DateTypeEndDate
    
}XHDateType;
 
@interface XHDatePickerView : UIView
 
@property (nonatomic,assign)XHDateStyle datePickerStyle;
@property (nonatomic,assign)XHDateType dateType;
@property (nonatomic,strong)UIColor *themeColor;
 
@property (nonatomic, retain) NSDate *maxLimitDate;//限制最大时间(没有设置默认2049)
@property (nonatomic, retain) NSDate *minLimitDate;//限制最小时间(没有设置默认1970)
 
-(instancetype)initWithCompleteBlock:(void(^)(NSDate *,NSDate *))completeBlock;
 
-(void)show;
-(void)setDateValue:(NSDate*)start endDate:(NSDate*)end;
 
@end