Add events to iCal from iPhone App, The event has no calendar set Error?

半城伤御伤魂 提交于 2019-12-04 19:14:47

Thank you so much for your responses. I have found the reason of the problem. The problem is occur only when i'm adding multiple events to iCal at a time, the EKEventStore will lost the calendar set. That is the reason the error message "Error, ["Error Domain=EKErrorDomain Code=1 "The event has no calendar set." UserInfo=0xfada510 {NSLocalizedDescription=The event has no calendar set.}”]" has came from iCal. I did a simple change in loop condition. That is, i have delayed to add an events to iCal by 3 sec's time interval for each adding events (Sorry for my poor english). This means every events will add to iCal after 3sec's delay from previous event added on iCal. Now, it seems working fine. I have tested this condition and feel good. Once again i thank you all.

Yuvaraj.M

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!