I need to retrieve the events from the iPhone calendar. I wrote a test app that retrieves the events. It also includes the events from my Google calendar which is what I want.
I have included the following code so my code is notified when there is a change in the events.
There is one problem. When I add an event to the Google calendar it does not show in the events event if I send the test app to background. To see the new event, I have to start the iPhone calendar and then start the test app.
Is there any solution?
Thanks
I have included the following code so my code is notified when there is a change in the events.
Code:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(storeChanged:) name:EKEventStoreChangedNotification object:eventStore];
There is one problem. When I add an event to the Google calendar it does not show in the events event if I send the test app to background. To see the new event, I have to start the iPhone calendar and then start the test app.
Is there any solution?
Thanks