Skip to content

Commit

Permalink
Merge pull request #10 from OutSystems/fix/RMET-1201/solve-crash
Browse files Browse the repository at this point in the history
RMET-1201 Calendar Plugin - Fix crash for iOS >= 15
  • Loading branch information
alexgerardojacinto authored Nov 19, 2021
2 parents ff5b491 + f60ccf4 commit 723c263
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ios/Calendar.m
Original file line number Diff line number Diff line change
Expand Up @@ -753,12 +753,12 @@ - (void) createEventInteractively:(CDVInvokedUrlCommand*)command {

self.interactiveCallbackId = command.callbackId;

EKEventEditViewController* controller = [[EKEventEditViewController alloc] init];
controller.event = myEvent;
controller.eventStore = self.eventStore;
controller.editViewDelegate = self;
dispatch_async(dispatch_get_main_queue(), ^{
[self.viewController presentViewController:controller animated:YES completion:nil];
EKEventEditViewController* controller = [[EKEventEditViewController alloc] init];
controller.event = myEvent;
controller.eventStore = self.eventStore;
controller.editViewDelegate = self;
[self.viewController presentViewController:controller animated:YES completion:nil];
});
}];
}
Expand Down

0 comments on commit 723c263

Please sign in to comment.