Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.95 KB | None | 0 0
  1. NSString *mess=[NSString stringWithFormat:@"Score %d/%dnRemaining:%ldnLevel %d n",++_intNumberCorrectAnswer, ++_intNumberQuestions,(badge - 1),intLevel];
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9. UIAlertController *alertController = [UIAlertController
  10. alertControllerWithTitle:@"Correct Answer"
  11. message:mess
  12. preferredStyle:UIAlertControllerStyleAlert];
  13.  
  14. UIAlertAction *okAction = [UIAlertAction
  15. actionWithTitle:NSLocalizedString(@"OK", @"OK action")
  16. style:UIAlertActionStyleDefault
  17. handler:^(UIAlertAction *action)
  18. {
  19. [self showQuizz];
  20.  
  21. }];
  22.  
  23.  
  24. [alertController addAction:okAction];
  25.  
  26. [self presentViewController:alertController animated:YES completion:nil];
  27.  
  28. UIAlertController * alert= [UIAlertController
  29. alertControllerWithTitle:@"ReStart Game?"
  30. message:@""
  31. preferredStyle:UIAlertControllerStyleAlert];
  32.  
  33. UIAlertAction *cancelAction = [UIAlertAction
  34. actionWithTitle:NSLocalizedString(@"Cancel", @"Cancel action")
  35. style:UIAlertActionStyleCancel
  36. handler:^(UIAlertAction *action)
  37. {
  38. [ alert dismissViewControllerAnimated:YES completion:NULL]; }];
  39.  
  40. UIAlertAction *okAction = [UIAlertAction
  41. actionWithTitle:NSLocalizedString(@"OK", @"OK action")
  42. style:UIAlertActionStyleDefault
  43. handler:^(UIAlertAction *action)
  44. {
  45. [self resetMe];
  46. }];
  47.  
  48.  
  49.  
  50. [alert addAction:cancelAction];
  51. [alert addAction:okAction];
  52.  
  53. [self presentViewController:alert animated:YES completion:nil];
  54.  
  55. NSString *mess=[NSString stringWithFormat:@"Game OvernCongratulationsnnRestarting Game" ];
  56.  
  57.  
  58.  
  59.  
  60. UIAlertController *alert = [UIAlertController
  61. alertControllerWithTitle:mess
  62. message:nil preferredStyle:UIAlertControllerStyleAlert];
  63.  
  64.  
  65.  
  66.  
  67. UIAlertAction *okAction = [UIAlertAction
  68. actionWithTitle:NSLocalizedString(@"OK", @"OK action")
  69. style:UIAlertActionStyleDefault
  70. handler:^(UIAlertAction *action)
  71. {
  72. [self resetAll];
  73. }];
  74.  
  75.  
  76.  
  77. [alert addAction:okAction];
  78.  
  79.  
  80.  
  81.  
  82. [self presentViewController:alert animated:YES completion:nil];
  83.  
  84. NSString *mess=[NSString stringWithFormat:@"BibleQuizZ Innn nGame Level is %dnnnn",intLevel ];
  85.  
  86.  
  87.  
  88.  
  89.  
  90. UIAlertController *alert = [UIAlertController
  91. alertControllerWithTitle:mess
  92. message:nil preferredStyle:UIAlertControllerStyleAlert];
  93.  
  94. UIAlertAction *okAction = [UIAlertAction
  95. actionWithTitle:NSLocalizedString(@"OK", @"OK action")
  96. style:UIAlertActionStyleDefault
  97. handler:^(UIAlertAction *action)
  98. {
  99. [ alert dismissViewControllerAnimated:YES completion:NULL];
  100. }];
  101.  
  102.  
  103. [alert addAction:okAction];
  104.  
  105. [self presentViewController:alert animated:YES completion:nil];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement