Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. - (void)gameLoop {
  2.  
  3. if (loopCounter < 10){
  4.  
  5. revealArray = [[NSMutableArray alloc] initWithObjects:@"1", @"2", @"3", @"4", @"5", @"6", @"7", @"8", nil];
  6. cover1.alpha = 1.0;
  7. cover2.alpha = 1.0;
  8. cover3.alpha = 1.0;
  9. cover4.alpha = 1.0;
  10. cover5.alpha = 1.0;
  11. cover6.alpha = 1.0;
  12. cover7.alpha = 1.0;
  13. cover8.alpha = 1.0;
  14. coreView.alpha = 1.0;
  15.  
  16. NSDictionary *question = nil;
  17.  
  18. question = [questionsArray objectAtIndex:loopCounter];
  19.  
  20. questionImage.image = [UIImage imageNamed:[question objectForKey:@"imageNames"]];
  21. [self getAnswers];
  22. [self.view setUserInteractionEnabled:YES];
  23.  
  24. }
  25. else {
  26.  
  27. [self.view setUserInteractionEnabled:NO];
  28. [self animateResults];
  29. return;
  30.  
  31. }
  32.  
  33. }
  34.  
  35. void CFRunLoopStop ( CFRunLoopRef loopCounter );
  36.  
  37. loopCounter = pause();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement