I am trying to make a calendar and view the calendar in which i can create ,edit or delete the events on tap of the button , the events created should be viewed weekly I have tried out kal ,tapku library Calendar but could not find appropriate.Are there any link or code that could help me out with this
我正在尝试制作一个日历并查看日历,在这个日历中,我可以在点击按钮时创建、编辑或删除事件,创建的事件应该每周查看一次。有任何链接或代码可以帮助我解决这个问题吗
1 个解决方案
#1
3
#import <EventKit/EventKit.h>
#import <EventKitUI/EventKitUI.h>
EKEventViewController *detailViewController;
EKEventStore *eventStore;
eventStore = [[EKEventStore alloc] init];
EKEvent *event = [EKEvent eventWithEventStore:eventStore];
event.title = @"Test Event";
event.startDate = copyofnextappdt;
event.endDate = copyofnextappdt;
[event setCalendar:[eventStore defaultCalendarForNewEvents]];
NSError *err;
[eventStore saveEvent:event span:EKSpanThisEvent error:&err];
#1
3
#import <EventKit/EventKit.h>
#import <EventKitUI/EventKitUI.h>
EKEventViewController *detailViewController;
EKEventStore *eventStore;
eventStore = [[EKEventStore alloc] init];
EKEvent *event = [EKEvent eventWithEventStore:eventStore];
event.title = @"Test Event";
event.startDate = copyofnextappdt;
event.endDate = copyofnextappdt;
[event setCalendar:[eventStore defaultCalendarForNewEvents]];
NSError *err;
[eventStore saveEvent:event span:EKSpanThisEvent error:&err];