forked from jumartin/Calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMGCCalendarHeaderView.h
38 lines (30 loc) · 1019 Bytes
/
MGCCalendarHeaderView.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
//
// CalendarHeaderView.h
// Calendar
//
// Copyright © 2016 Julien Martin. All rights reserved.
//
#import <UIKit/UIKit.h>
@class MGCDayPlannerView;
@interface MGCCalendarHeaderView : UICollectionView <UICollectionViewDataSource, UICollectionViewDelegate, UIScrollViewDelegate>
/*!
@abstract The current selected date on the calendar
@discussion Read only, you can set the visible date via selectDate
*/
@property (nonatomic, readonly) NSDate *selectedDate;
/*!
@abstract The header background color
@discussion Light gray by default
*/
@property (nonatomic, strong) UIColor *headerBackgroundColor;
/*!
@abstract Initialization
@discussion The day planner view instance needs to be passed along
*/
- (instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout andDayPlannerView:(MGCDayPlannerView *)dayPlannerView;
/*!
@abstract Sets and moves the header view to the given date
@parameter date the date to be set
*/
- (void)selectDate:(NSDate *)date;
@end