From e348438eafecdfbbd90386f32103eb2618a8669a Mon Sep 17 00:00:00 2001 From: Ric Santos Date: Mon, 26 Sep 2016 20:48:45 +0930 Subject: [PATCH] Fix the Objective-C sample code in the readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7dff7e0..2f79d4b 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,8 @@ alertViewController.messageFont = [UIFont fontWithName:@"AvenirNext-Medium" size alertViewController.buttonTitleFont = [UIFont fontWithName:@"AvenirNext-Regular" size:alertViewController.buttonTitleFont.pointSize]; alertViewController.cancelButtonTitleFont = [UIFont fontWithName:@"AvenirNext-Medium" size:alertViewController.cancelButtonTitleFont.pointSize]; -alertViewController.swipeDismissalGestureEnabled = YES: -alertViewController.backgroundTapDismissalGestureEnabled = YES: +alertViewController.swipeDismissalGestureEnabled = YES; +alertViewController.backgroundTapDismissalGestureEnabled = YES; // Add alert actions [alertViewController addAction:[NYAlertAction actionWithTitle:NSLocalizedString(@"Done", nil) @@ -55,7 +55,7 @@ alertViewController.backgroundTapDismissalGestureEnabled = YES: }]]; // Present the alert view controller -[self presentViewController:alertViewController animated:YES]; +[self presentViewController:alertViewController animated:YES completion:nil]; ``` #### Swift