简体   繁体   English

是否可以通过自定义应用程序将iCal事件编辑到iPhone日历?

[英]Is there any way to edit iCal event to the iPhone Calendar from the custom App?

Is there any way to edit iCal event to the iPhone Calendar from the custom App? 是否可以通过自定义应用程序将iCal事件编辑到iPhone日历? In my app i have to save event to device cal. 在我的应用中,我必须将事件保存到设备校准中。 and how to edit that saved event in device cal from my app. 以及如何通过我的应用在设备校准中编辑保存的事件。

For this you can use 为此,您可以使用

- (EKEvent *)eventWithIdentifier:(NSString *)identifier;

--> you will get the EKEvent with the particular identifier you send... ->您将获得带有发送的特定标识符的EKEvent ...

--> then do the changing in its details like "description", "Date" etc ->然后更改其详细信息,例如“描述”,“日期”等

--> add this event to the EKEventStore and add it to iCal using ->将此事件添加到EKEventStore并使用将其添加到iCal

[eventStore saveEvent:event span:EKSpanThisEvent error:&err];

i guess it should work this is totally based on my memory. 我想应该起作用,这完全基于我的记忆。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM