Created
September 17, 2016 05:16
-
-
Save RameshAran/7c17d093d26475a5233e31cebb7e06bf to your computer and use it in GitHub Desktop.
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
- (void)showSimpleAlert { | |
UIAlertController *alertView = [UIAlertController alertControllerWithTitle:@"Alert!" | |
message:@"This is an Alert." | |
preferredStyle:UIAlertControllerStyleAlert]; | |
[alertView addAction:[UIAlertAction actionWithTitle:@"ok" | |
style:UIAlertActionStyleDefault | |
handler:^(UIAlertAction *action) { | |
NSLog(@"action - %@", action.title); | |
}]]; | |
[self presentViewController:alertView animated:YES completion:^{ | |
NSLog(@"alertView shown!"); | |
}]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
create a simple Alert.