Created
November 18, 2015 16:45
-
-
Save rogerluan/51ffcd9dd3d5dc5628ca to your computer and use it in GitHub Desktop.
Code snippet for blog series.
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
#import "TableDelegate.h" | |
//adicionar antes do último @end | |
#pragma mark - IBActions - | |
- (IBAction)itemPressed:(TableDelegate*)sender { | |
TableData *data = sender.selectedData; | |
UIAlertController *alert = [UIAlertController alertControllerWithTitle:data.title message: | |
[NSString stringWithFormat:NSLocalizedString(@"Jogo na posição %d, com %d canais e %d visualizações.", nil),[data.position integerValue],[data.channels integerValue],[data.views integerValue]] preferredStyle:UIAlertControllerStyleAlert]; | |
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleCancel handler:nil]; | |
[alert addAction:cancelAction]; | |
[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