From 6d9ceef01b3849451a853563bca04191aece9e38 Mon Sep 17 00:00:00 2001 From: Nealon Young Date: Tue, 23 Oct 2018 00:16:39 -0700 Subject: [PATCH] Update example in readme --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 312d9b2..64a454a 100644 --- a/README.md +++ b/README.md @@ -47,14 +47,14 @@ configuration.buttonConfiguration.titleColor = [UIColor whiteColor]; configuration.cancelButtonConfiguration.titleColor = [UIColor whiteColor]; // Set up alert actions -NYAlertAction *cancelAction = [NYAlertAction actionWithTitle:@"Later" - style:UIAlertActionStyleCancel - handler:nil]; -NYAlertAction *okAction = [NYAlertAction actionWithTitle:@"Ok" - style:UIAlertActionStyleDefault - handler:^(NYAlertAction *action) { - [self doSomething]; - }]]; +NYAlertAction *cancelAction = [[NYAlertAction alloc] initWithTitle:@"Later" + style:UIAlertActionStyleCancel + handler:nil]; +NYAlertAction *okAction = [[NYAlertAction alloc] initWithTitle:@"Ok" + style:UIAlertActionStyleDefault + handler:^(NYAlertAction *action) { + [self doSomething]; + }]]; NYAlertViewController *alertViewController = [[NYAlertViewController alloc] initWithOptions:configuration title:title