Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *mess=[NSString stringWithFormat:@"Score %d/%dnRemaining:%ldnLevel %d n",++_intNumberCorrectAnswer, ++_intNumberQuestions,(badge - 1),intLevel];
- UIAlertController *alertController = [UIAlertController
- alertControllerWithTitle:@"Correct Answer"
- message:mess
- preferredStyle:UIAlertControllerStyleAlert];
- UIAlertAction *okAction = [UIAlertAction
- actionWithTitle:NSLocalizedString(@"OK", @"OK action")
- style:UIAlertActionStyleDefault
- handler:^(UIAlertAction *action)
- {
- [self showQuizz];
- }];
- [alertController addAction:okAction];
- [self presentViewController:alertController animated:YES completion:nil];
- UIAlertController * alert= [UIAlertController
- alertControllerWithTitle:@"ReStart Game?"
- message:@""
- preferredStyle:UIAlertControllerStyleAlert];
- UIAlertAction *cancelAction = [UIAlertAction
- actionWithTitle:NSLocalizedString(@"Cancel", @"Cancel action")
- style:UIAlertActionStyleCancel
- handler:^(UIAlertAction *action)
- {
- [ alert dismissViewControllerAnimated:YES completion:NULL]; }];
- UIAlertAction *okAction = [UIAlertAction
- actionWithTitle:NSLocalizedString(@"OK", @"OK action")
- style:UIAlertActionStyleDefault
- handler:^(UIAlertAction *action)
- {
- [self resetMe];
- }];
- [alert addAction:cancelAction];
- [alert addAction:okAction];
- [self presentViewController:alert animated:YES completion:nil];
- NSString *mess=[NSString stringWithFormat:@"Game OvernCongratulationsnnRestarting Game" ];
- UIAlertController *alert = [UIAlertController
- alertControllerWithTitle:mess
- message:nil preferredStyle:UIAlertControllerStyleAlert];
- UIAlertAction *okAction = [UIAlertAction
- actionWithTitle:NSLocalizedString(@"OK", @"OK action")
- style:UIAlertActionStyleDefault
- handler:^(UIAlertAction *action)
- {
- [self resetAll];
- }];
- [alert addAction:okAction];
- [self presentViewController:alert animated:YES completion:nil];
- NSString *mess=[NSString stringWithFormat:@"BibleQuizZ Innn nGame Level is %dnnnn",intLevel ];
- UIAlertController *alert = [UIAlertController
- alertControllerWithTitle:mess
- message:nil preferredStyle:UIAlertControllerStyleAlert];
- UIAlertAction *okAction = [UIAlertAction
- actionWithTitle:NSLocalizedString(@"OK", @"OK action")
- style:UIAlertActionStyleDefault
- handler:^(UIAlertAction *action)
- {
- [ alert dismissViewControllerAnimated:YES completion:NULL];
- }];
- [alert addAction:okAction];
- [self presentViewController:alert animated:YES completion:nil];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement