Quote:
Originally Posted by garyk
Code:
level++;
levelText.text = [NSString stringWithFormat:@"%i", level];
|
Quote:
Originally Posted by xiii3
so....
- (IBAction)levelUpPress  id )sender
{
level++;
levelText.text = [NSString stringWithFormat:@"%i"];
}
doesnt build...
what is the level++ part? ive never come across it... \
basically right now all i need is to have a button that adds 1 to the value of a label and i was thinking of using the labels value to set the rest of the variables up....
|
Compare the code originally posted with what you've currently got. Also, if you don't know what "++" does, you should locate a C language reference manual and keep it handy.