comparing text fields
Hey guys im having trouble comparing text fields. im not sure what im doing wrong maybe some one can help.
<
-(IBAction)checkAnswer
{
if(textField.text == answerField.text)
{
score = score + 100;
scoreLabel.text = [NSString stringWithFormat:@"%i", score];
[self loadHints];
}
else
{
score = score - 100;
scoreLabel.text = [NSString stringWithFormat:@"%i", score];
[self addSubview:bg2];
[self loadHints];
[self addSubview:HUD];
}
>
|