Created
February 18, 2017 22:58
-
-
Save ahmadlinus/c4eb94eb5fbc2412030079915be45504 to your computer and use it in GitHub Desktop.
This file contains 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
UIAlertController* alert = [UIAlertController alertWithTitle:@"test" message:@"testing" p | |
referredStyle:UIAlertControllerStyleAlert]; | |
UIAlertAction* action = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleCancel handler: | |
^(void) { | |
[self dismissViewControllerAnimated: YES completion: nil]; | |
}]; | |
[alert addAction: action]; | |
[self presentViewController: alert animated: YES completion: nil]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment