EKEvent with eventWithIdentifier on iOS

前端 未结 2 1820
广开言路
广开言路 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?

提交回复
热议问题