我正在尝试显示 Kal ( https://github.com/phaibin/Kal ) 日历,但我遇到了一些错误。
这是.h文件:
#import <UIKit/UIKit.h>
#import "Kal.h"
@interface CalendarViewController : UITableViewController <UIApplicationDelegate,KalDataSource>
@property (nonatomic, retain) IBOutlet KalViewController *calendar;
@end
和我的 .m 文件:
#import "CalendarViewController.h"
#import "Kal.h"
@interface CalendarViewController ()
@end
@implementation CalendarViewController
@synthesize calendar = _calendar;
- (void)viewDidLoad {
[super viewDidLoad];
_calendar = [[KalViewController alloc] init];
_calendar.delegate = self;
_calendar.dataSource = self;
[self.view addSubview:_calendar.view];
[_calendar loadView];
}
我收到以下错误:
Method 'presentingDatesFrom:to:delegate:' in protocol 'KalDataSource' not implemented.
Method 'markedDatesFrom:to:' in protocol 'KalDataSource' not implemented.
Method 'loadItemsFromDate:toDate:' in protocol 'KalDataSource' not implemented.
Method 'removeAllItems' in protocol 'KalDataSource' not implemented.
有谁知道如何解决这些错误?谢谢