Quote:
Originally Posted by wilky94
i dont understand what you mean could you send me the code i am a nube to iphone development
|
I mean you should do:
Code:
if (question.text isEqualToString:@"What was the first programmable computer called?") {
NSLog(@"IF statement true");
score.text = [NSString stringWithFormat:@"%i", ([score.text intValue] - 1)];
result.text = @"Incorrect";
}
to check if the IF is true, and if its not you should do:
Code:
NSLog(question.text);
if (question.text isEqualToString:@"What was the first programmable computer called?") {
score.text = [NSString stringWithFormat:@"%i", ([score.text intValue] - 1)];
result.text = @"Incorrect";
}
to see what question.text is and why it's not evaluating to true.