EKEvent with eventWithIdentifier on iOS

前端 未结 2 1750
广开言路
广开言路 2021-01-02 23:55

If I want to retrieve EKEvent from EKEventStore with eventWithIdentifier method for previously saved event but I always get null.

相关标签:
2条回答
  • 2021-01-03 00:42

    The documentation warns that "If the calendar of an event changes, its identifier most likely changes as well." Did anything change about the event between the time you stored the eventIdentifer and when you attempted to delete it?

    0 讨论(0)
  • 2021-01-03 00:44

    I am using newEvent.eventIdentifier instead of newEvent.calendarItemIdentifier and so far, using [store eventWithIdentifier:_project.event_identifier], I can retrieve, delete and edit an existing event. you should try.

    0 讨论(0)
提交回复
热议问题