Here is the link to the github https://github.com/phaibin/Kal
This is what it is suppose to look like
However this is what I am getting
Here are the codes .h file: #import
@class KalViewController;
@interface Planner_Calendar : UIViewController <UIApplicationDelegate, UITableViewDelegate>{
KalViewController *kal;
id dataSource;
}
@property (strong, nonatomic) IBOutlet UIView *calendarView;
@end
.m file:
#import "EventKitDataSource.h"
#import "Kal.h"
#import "NSDate+Convenience.h"
#import <EventKit/EventKit.h>
#import <EventKitUI/EventKitUI.h>
@implementation Planner_Calendar
@synthesize calendarView;
-(void)viewDidLoad{
kal = [[KalViewController alloc] initWithSelectionMode:KalSelectionModeSingle];
kal.selectedDate = [NSDate dateStartOfDay:[NSDate date]];
kal.title = @"NativeCal";
kal.delegate = self;
dataSource = [[EventKitDataSource alloc] init];
kal.dataSource = dataSource;
[self.calendarView addSubview:kal.view];
}
@end