iphone - How to add up a value when a button pressed -
The last time I asked when a button is pressed - (IBAction) AddTap: (id) this; Now call me tapCount ++; was used to use (tapacount is an int type variable) button was pressed to add 1 time. However, I think the value remains the same, no matter how many times I pressed it. I want to be a popcount 1 if I press the button once, and make it 2, if I press the button in detail: The pass player is a class named, which is called a member of the result of int takpcount and int When the button is pressed each time, a value will be added to the tapacount, and the value will be displayed at the end (When Game & Say) For now, whenever I want to check it A. I use NSLog the value remains the same. Player.h @class TappingViewController; @ Interface player: NSBK {NSSTING * name; Int Takpank; Full result; } @property (nanatomic, assign) NSString * name; @protty (nanatomic, assign) int tapacount; @property (nonatomic, assigned) integer results; @end TappingViewControl...