diff --git a/Example-Objc/FullScreenExampleViewController.m b/Example-Objc/FullScreenExampleViewController.m index 607b049..b709375 100644 --- a/Example-Objc/FullScreenExampleViewController.m +++ b/Example-Objc/FullScreenExampleViewController.m @@ -258,11 +258,9 @@ NS_ASSUME_NONNULL_END } else { // Alert - UIAlertController *alertController = [[UIAlertController alloc] init]; - alertController.title = @"Error"; - alertController.message = @"Permission of calendar is required for fetching events."; + UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Permission Error" message:@"Permission of calendar is required for fetching events." preferredStyle:UIAlertControllerStyleAlert]; [alertController addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleCancel handler:nil]]; - + [self presentViewController:alertController animated:YES completion:nil]; } }];