How to remove randomization in my app?
-(void)Random{
[TimeOut invalidate];
i = 10;
[self resetTime];
numderOfQuestion.text = [NSString stringWithFormat:@"Question : %i",score + 1];
random = arc4random()%[Question count];
QuestionContent.text = [NSString stringWithFormat:@"%@", [Question objectAtIndex: random]];
NSArray *randomAnswer;
randomAnswer = [[Answer objectAtIndex:random] componentsSeparatedByString:@"-"];
[AnswerA setTitle:[NSString stringWithFormat:@"%@", [randomAnswer objectAtIndex:0]] forState:UIControlStateNormal];
[AnswerB setTitle:[NSString stringWithFormat:@"%@", [randomAnswer objectAtIndex:1]] forState:UIControlStateNormal];
[AnswerC setTitle:[NSString stringWithFormat:@"%@", [randomAnswer objectAtIndex:2]] forState:UIControlStateNormal];
}
How to remove randomization in my app?
Aucun commentaire:
Enregistrer un commentaire