Last active
March 29, 2017 07:55
-
-
Save aminbenarieb/da5a2ae47e367e05df5fc1ef85c08356 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 alertControllerWithTitle:<#name#> | |
message:<#message#> | |
preferredStyle:<#UIAlertControllerStyleAlert#>]; | |
void (^<#handler#>)(UIAlertAction * action) = ^(UIAlertAction * action){ | |
}; | |
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:<#@"OK"#> style:<#UIAlertActionStyleDefault#> | |
handler:<#handler#>]; | |
[<#alert#> addAction:<#defaultAction#>]; | |
[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