iOS日历应用:KDCalendarView
y37f
10年前
KDCalendarView 是一款实现基本日历功能的应用。
安装
- Download the files or clone the project
- Drop the contents of the KDCalendarView group in your project
- Add the EventKit framework (From XCode, click on the project file then Build Phases > Link Binary With Libraries. Press the + and add the EventKit.framework)
基本使用
Create a UIViewController that implementes the KDCalendarDelegate and KDCalendarDataSource and then create the calendar as below:
KDCalendarView* calendarView = [[KDCalendarView alloc] initWithFrame:calendarFrame]; calendarView.delegate = self; calendarView.dataSource = self; [self.view addSubview:calendarView]