Created
December 23, 2015 00:49
-
-
Save givp/da8880e3f0ef234ff61a to your computer and use it in GitHub Desktop.
Simple alert view for Watch OS2 in Objective-C
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WKAlertAction *action = [WKAlertAction actionWithTitle:@"OK" style:WKAlertActionStyleDefault handler:^{ | |
// do something after OK is clicked | |
}]; | |
[self presentAlertControllerWithTitle:@"Oops!" message:@"Something happened." preferredStyle:WKAlertControllerStyleAlert actions:@[action]]; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment