title: Synchronization with google calendar
body: <p>I want to synchronise all events with Google Calendar. I used the following code to do this:<pre>    <code>EKEventStore *eventStore = [[[EKEventStore alloc] init] autorelease]; 
      calendarsArray = [[NSArray alloc] init];
      calendarsArray = [[eventStore calendars] retain];
      EKCalendar *calendar = [calendarsArray objectAtIndex:1];
      [events setCalendar:calendar];
      NSError *err;
      [eventStore saveEvent:events span:EKSpanThisEvent error:&amp;err];<br>
  </code></pre>
  But I am not getting google calendar at object at index(1). So Can anybody help me to solve this problem.</p>