-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTdCalendarView.h
42 lines (34 loc) · 1.18 KB
/
TdCalendarView.h
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
//
// CalendarView.h
// ZhangBen
//
// Created by tinyfool on 08-10-26.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol CalendarViewDelegate;
@interface TdCalendarView : UIView {
CFGregorianDate currentMonthDate;
CFGregorianDate currentSelectDate;
CFAbsoluteTime currentTime;
UIImageView* viewImageView;
id<CalendarViewDelegate> calendarViewDelegate;
int *monthFlagArray;
}
@property CFGregorianDate currentMonthDate;
@property CFGregorianDate currentSelectDate;
@property CFAbsoluteTime currentTime;
@property (nonatomic, retain) UIImageView* viewImageView;
@property (nonatomic, assign) id<CalendarViewDelegate> calendarViewDelegate;
-(int)getDayCountOfaMonth:(CFGregorianDate)date;
-(int)getMonthWeekday:(CFGregorianDate)date;
-(int)getDayFlag:(int)day;
-(void)setDayFlag:(int)day flag:(int)flag;
-(void)clearAllDayFlag;
@end
@protocol CalendarViewDelegate<NSObject>
@optional
- (void) selectDateChanged:(CFGregorianDate) selectDate;
- (void) monthChanged:(CFGregorianDate) currentMonth viewLeftTop:(CGPoint)viewLeftTop height:(float)height;
- (void) beforeMonthChange:(TdCalendarView*) calendarView willto:(CFGregorianDate) currentMonth;
@end