I have a UILabel and when the user presses a button, I want the label to add one to its value. But I’m having a bit of trouble with this. Here is my code:
- (IBAction)addButton2:(id)sender {
int integer = 1;
integer++;
[label1 setText:[NSString stringWithFormat:@"%i",integer]];
}
int doesn’t respond to stringValue …
the original question had [int stringValue] which wont work