title: EKEvent Adding event to day with a ical event
body: <p>I'm using the following code to add event to iphone's calendar,</p>
  
  <pre><code>EKEventStore *eventStore = [[EKEventStore alloc] init];
  EKEvent *event  = [EKEvent eventWithEventStore:eventStore];
  event.title = @"title";
  event.startDate = [NSDate date];
  event.endDate = somedate;
  [event setCalendar:[eventStore defaultCalendarForNewEvents]];
  [eventStore saveEvent:event span:EKSpanThisEvent error:&amp;err];
  </code></pre>
  
  <p>And to access the events I use,</p>
  
  <pre><code>EKEventStore *eventStore = [[EKEventStore alloc] init];
  NSPredicate *predicate = [eventStore predicateForEventsWithStartDate:startDate endDate:endDate calendars:nil];     
  NSArray *eventsOfTheMonth = [eventStore eventsMatchingPredicate:predicate];
  
  NSMutableArray *tempEKEvents = [NSMutableArray arrayWithCapacity:[eventsOfTheMonth count]];
  
  for (EKEvent *event in eventsOfTheMonth) {
  
          [tempEKEvents addObject:event];
  
      }
  
  }
  </code></pre>
  
  <p>For some reason when I want to add a new event to a day that already has an event added by the iCal, the event won't add. But it will add the event to any other day, even to the ones that have more than one events that are added through my app.</p>