Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pofak

macrumors newbie
Original poster
Dec 18, 2009
11
0
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.

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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.