Skip to content

Commit

Permalink
Update example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nealyoung committed Oct 23, 2018
1 parent 46c9d8b commit 6d9ceef
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d9ceef

Please sign in to comment.