So I'm creating my first iOS app!!!
I want to create a calculator. Nothing fancy, just to start with something simple.
I have my buttons, and I know how to call a method when the button is pressed.
but how can I call a method with a parameter when the button is pressed?
My method would be something like this:
TIA
I want to create a calculator. Nothing fancy, just to start with something simple.
I have my buttons, and I know how to call a method when the button is pressed.
but how can I call a method with a parameter when the button is pressed?
My method would be something like this:
Code:
- (IBAction) writeNumber: (int) number {
....
}
TIA