拉取特定事件';事件工具包iPhone iOS中的标题和开始日期
我已经看过苹果的相同代码,但还没有弄明白 我正在尝试从iOS 4.0或更高版本的事件工具包中提取单个事件的标题和开始日期 我已经使用了苹果的EKDemo示例代码,并尝试修改didSelect方法,但每次修改时,应用程序都会失效。有什么想法吗拉取特定事件';事件工具包iPhone iOS中的标题和开始日期,iphone,ios4,eventkit,Iphone,Ios4,Eventkit,我已经看过苹果的相同代码,但还没有弄明白 我正在尝试从iOS 4.0或更高版本的事件工具包中提取单个事件的标题和开始日期 我已经使用了苹果的EKDemo示例代码,并尝试修改didSelect方法,但每次修改时,应用程序都会失效。有什么想法吗 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // Upon selecting an
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Upon selecting an event, create an EKEventViewController to display the event.
self.detailViewController = [[EKEventViewController alloc] initWithNibName:nil bundle:nil];
detailViewController.event = [self.eventsList objectAtIndex:indexPath.row];
// Allow event editing.
detailViewController.allowsEditing = YES;
// Push detailViewController onto the navigation controller stack
// If the underlying event gets deleted, detailViewController will remove itself from
// the stack and clear its event property.
[self.navigationController pushViewController:detailViewController animated:YES];
}