Skip to content

Instantly share code, notes, and snippets.

@ahmadlinus
Created February 18, 2017 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadlinus/c4eb94eb5fbc2412030079915be45504 to your computer and use it in GitHub Desktop.
Save ahmadlinus/c4eb94eb5fbc2412030079915be45504 to your computer and use it in GitHub Desktop.
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