Search code examples
iphoneobjective-cekeventkitekeventstore

App crashing due to event store changed?


I searched SO but didnt find any accurate answer for this.

I am implementing Event Kit in my app.I am programatically implementing creation of events, But I am not specifying any calendar there.Then I am using the EKEventViewController to Edit my events.I am using the Kal library as well to show the calendar.Every time I edit the second or 3rd so on event, or event delete the event, My app crashes, It is saying that event store is changed.I am not able to solve this issue.

Can anyone help me in this.

Here is the Crash Log..

terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM eventStoreChanged:]: unrecognized selector sent to instance 0x1fc7f040

Thanks


Solution

  • I had found the answer myself...If someone faces the same situation..Then here you go.. You need to set the eventstorechanged delegate to nil. And your problem would be solved.

    Cheers Sanjay