I am having a problem with the frame of my CKCalendarView's
frame (Which comes with MBCalendarKit
).
As you can see from the first and second pictures (and a little bit from the third too), the events are beginning to list way below the calendar. Which does not happen with framework's demo project.
The code I initialize it is as follows:
- (void)viewDidLoad {
[super viewDidLoad];
calendarView = [CKCalendarView new];
[calendarView setDisplayMode:CKCalendarViewModeDay];
[[self calendarViewArea] addSubview:calendarView];
}
The calendarViewArea is a UIView
which starts right below my Navigation Bar
. This is because when I add the calendarView directly to my ViewController's
view its top part stays below my navigation bar.