0
一個呈現視圖使用EventKit
我的標題字符串中所提出的觀點不顯示事件時標題所暗示的,它只是空白事件名稱沒有顯示使用EK活動,EventKit
EKEventStore *es = [[EKEventStore alloc] init];
EKEventEditViewController *controller = [[EKEventEditViewController alloc] init];
controller.eventStore = es;
controller.editViewDelegate = self;
EKEvent *event = [EKEvent eventWithEventStore:eventStore];
event.title = @"This is an event"; //does not appear in presented view
[self.editController presentModalViewController:controller animated:YES];
[event setCalendar:[eventStore defaultCalendarForNewEvents]];
非常感謝您的支持! – JSA986