如何使用我们的iPhone应用程序在iPhone日历应用程序中添加事件。
如何在iPhone日历中添加事件。我只想使用我的应用程序在iPhone日历中添加事件,并想为Perticular事件设置pushnotification。请帮我解决这个问题。谢谢。要以编程方式创建事件,您可以使用EventKit,更具体地说是提供的如何使用我们的iPhone应用程序在iPhone日历应用程序中添加事件。,iphone,xcode,events,icalendar,Iphone,Xcode,Events,Icalendar,如何在iPhone日历中添加事件。我只想使用我的应用程序在iPhone日历中添加事件,并想为Perticular事件设置pushnotification。请帮我解决这个问题。谢谢。要以编程方式创建事件,您可以使用EventKit,更具体地说是提供的EKEventEditViewController。有关详细信息,请参阅Apple文档 在iOS 4.0+中,您还可以访问该控制器,而无需编写任何EventKit代码。为此,请使用配置了dataDetectorTypes=UIDataDetectorT
EKEventEditViewController
。有关详细信息,请参阅Apple文档
在iOS 4.0+中,您还可以访问该控制器,而无需编写任何EventKit代码。为此,请使用配置了dataDetectorTypes=UIDataDetectorTypeCalendarEvent
的UITextView
。UITextView将自动将表示格式化日期、一周中的天数等的字符串转换为处理事件创建的可单击URL
请参阅Apple iOS文档了解您的其余问题。如果您的案例中有任何特定的问题无法解决,请发布一些代码,向我们展示您已经尝试过的内容,等等。您可以使用此代码
EKEventStore *es = [[EKEventStore alloc] init];
EKEventEditViewController *controller = [[EKEventEditViewController alloc] init];
controller.eventStore = es;
controller.editViewDelegate = self;
[self presentModalViewController:controller animated:YES];
[controller release];
可能重复的