Hi!
I have a button in my App called myButton, what I what to do is really simple. I want to have an integer that adds one to itself every time the Button is pushed. Here's what the code looks like right now:
- (IBAction)myButton {
NSLog(@"Button was pushed WOHHOP");
}
This is inside my .m file, so do I need to declare an integer inside my .h file? I just want to Log the value of it inside this button action so that as I push it I can see the number increase by one every time.
Any advice would help, Thank you!