我有一个使用此代码选择一行的UITableViewController
推送:EKEventViewController
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
if([segue.identifier isEqualToString:@"eventHandler"]){
if (_currentPanel.event_identifier != nil) {
self.event = [[[CalendarHelper sharedInstance] store] eventWithIdentifier:_currentPanel.event_identifier];
} else {
EKEventStore *store = [[CalendarHelper sharedInstance] store];
self.event = [EKEvent eventWithEventStore:store];
_event.startDate = self.qualifyDate;
_event.endDate = self.qualifyDate;
_event.title = @"test identifier" ;
_event.calendar = [[CalendarHelper sharedInstance] calendar];
}
self.eventDatailController = (EKEventViewController *)[segue destinationViewController];
self.eventDatailController.event = self.event;
self.eventDatailController.allowsEditing = YES;
self.eventDatailController.allowsCalendarPreview = YES;
self.eventDatailController.delegate = self;
}
}
事件显示良好,但在EKEventViewController
通过编辑按钮编辑事件并完成点击完成按钮后,事件EKEventViewController
没有相应刷新。
工作正常,SimpleEKDemo
但不使用
prepareForSegue:sender:
但
tableView:didSelectRowAtIndexPath:
我究竟做错了什么?