title: saveEvent returning "No calendar has been set"
body: <p>I am attempting to save an event into the calendar, from my application.
  My code works for iOS 7, but on <strong>iOS 6</strong>, it returns <strong>No calendar has been set.</strong></p>
  
  <p>The application prompts for user to grant access to the calendar, on iOS 7.
  But no such prompt appears for iOS 6. Although the application is granted access in the <em>Settings-> Privacy -> Calendar.</em></p>
  
  <p>And yes, I have already implemented the <code>requestAccessToEntityType:completion:</code>.</p>
  
  <p><strong>Here is my code snippet</strong>.</p>
  
  <pre><code>EKEventStore *objStore = [[EKEventStore alloc]init];
  
  if ([objStore respondsToSelector:@selector(requestAccessToEntityType:completion:)])
  {
      // iOS 6 and later
      [objStore requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL granted, NSError *error)
      {
          dispatch_async(dispatch_get_main_queue(), ^{
              if (granted)
          {
              // code here for when the user allows your app to access the calendar
              EKEvent *calEvent = [EKEvent eventWithEventStore:objStore];
              calEvent.title = mstrTitleEvent;
              calEvent.startDate = self.dateToBeSet;
              calEvent.endDate = self.dateToBeSet;
              calEvent.calendar = objStore.defaultCalendarForNewEvents;
  
              EKAlarm *objAlarm = [EKAlarm alarmWithAbsoluteDate:self.dateToBeSet];
              [calEvent addAlarm:objAlarm];
  
              NSError *error;
              BOOL _bStatus = [objStore saveEvent:calEvent span:EKSpanThisEvent commit:YES error:&amp;error];
  
              UIAlertView *alertV;
  
              if(_bStatus)
              {
                  alertV = [[UIAlertView alloc]initWithTitle:@"Congratulations" message:@"Saved To Calendar" delegate:nil cancelButtonTitle:@"Right On!" otherButtonTitles:nil];
                  [alertV show];
              }
              else
              {
                  alertV = [[UIAlertView alloc]initWithTitle:@"Alert" message:[NSString stringWithFormat:@"Error saving to calendar, with error %@.",[error localizedDescription]] delegate:nil cancelButtonTitle:@"Cancel" otherButtonTitles:nil];
                  [alertV show];
              }
          }
              else
          {
              // code here for when the user does NOT allow your app to access the calendar
              UIAlertView *alertV = [[UIAlertView alloc]initWithTitle:@"Alert" message:@"Please grant access to the calendar, and try again later." delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil];
              [alertV show];
          }
          });
      }];
  </code></pre>
  
  <p>}</p>