title: How to dismiss the eventeditviewcontroller when I have allowed editing on eventviewcontroller?
body: <p>So I present an EKEventViewController with a UINavigationController.  From inside the EKEventViewController I am able to edit the event.  It presents an EKEventEditViewController.  Everything thing works great(cancel/done buttons) except when I delete the event inside the EKEventEditViewController I recieve this </p>
  
  <p>attempt to dismiss modal view controller whose view does not currently appear. self =  modalViewController =  </p>
  
  <p>Here is my code...</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {
      [CalendarViewController connectExchange];
  
      if (connectionEx == YES)
      {
          NSDate *dateRepresentingThisDay = [self.sortedDays objectAtIndex:indexPath.section];
          NSArray *eventsOnThisDay = [self.sections objectForKey:dateRepresentingThisDay];
          EKEventViewController *eventViewController = [[EKEventViewController alloc] init];
  
          eventViewController.allowsEditing = YES;
          eventViewController.delegate = self;
          EKEvent *event = [eventsOnThisDay objectAtIndex:indexPath.row];
          eventViewController.event = event;
  
          UINavigationController *navBar = [[UINavigationController alloc]initWithRootViewController:eventViewController];
  
          [self.navigationController presentViewController:navBar animated:YES completion:nil];
      }
  }
  
  - (void)eventViewController:(EKEventViewController *)controller didCompleteWithAction:(EKEventViewAction)action
  {
      EKEvent *event = controller.event;
  
      CalendarViewController * __weak weakSelf = self;
      // Dismiss the modal view controller
      [self dismissViewControllerAnimated:YES completion:^
      {
          if (action == EKEventViewActionDone)
          {
              dispatch_async(dispatch_get_main_queue(), ^{
                 NSError *err;
                 [self.eventStore saveEvent:event span:EKSpanThisEvent error:&amp;err];
                 [self updateEvent:event];
              });
          }
          if (action == EKEventViewActionDeleted)
          {
              dispatch_async(dispatch_get_main_queue(), ^{
                 [self deleteEvent:event];
                 NSError *error;
                 EKEvent *eventRemove = [self.eventStore eventWithIdentifier:event.eventIdentifier];
                 [self.eventStore removeEvent:eventRemove span:EKSpanThisEvent error:&amp;error];
              });
          }
          if (action == EKEventViewActionResponded)
          {
              dispatch_async(dispatch_get_main_queue(), ^{
              });
          }
  
       weakSelf.eventsList = [self fetchEvents];
       [weakSelf.tableView reloadData];
       NSLog(@"Event Updated");
       }];
  }
  </code></pre>
  
  <p>How am I suppose to properly dismiss the ViewControllers after deleting the event via the EKEventEditViewController?</p>