iOS EventKit - Event is not being deleted from calendar

痞子三分冷 提交于 2019-12-01 11:12:55

I was getting similar error on removing a calendar:

CADObjectGetIntProperty failed with error Error Domain=EKCADErrorDomain Code=1010 "The operation couldn’t be completed. (EKCADErrorDomain error 1010.)" CADObjectGetRelation failed with error Error Domain=EKCADErrorDomain Code=1010 "The operation couldn’t be completed. (EKCADErrorDomain error 1010.)"

As it is not exactly the same message I will just explain what helped me. The issue came from making "remove" operation on a new EventStore object. Try to make sure you hold a reference to EventStore and both adding and removing operations are called on the same object.

I've gotten this error several times and it's always because my eventIdentifier is bad and there is no matching record for my eventIdentifier. Always my code has been at fault.

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