Microsoft exchange calender eventID issue in iOS swift

Problem: 

I had created the calendar that EKSource type is exchange.

I tried to save the event in that calendar then get the eventidentifier and save it in my local database but after saved and got id after second time i had tried to fetch the event it has no more but the event available in calendar but ID changed.


Solution:

You have to do after save the event use dispatchasync with wait 2 seconds after that save the event ID it will works.Because of updated id available only after that..Then after you can try to get the event by event ID it will works

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift