In your view controller's interface declaration, define a method with a return type of IBAction
that takes single parameter of type id
:
- (IBAction)buttonWasTapped:(id)sender;
Then in Interface Builder, right-click the button and drag from Touch Up Inside
to your view controller. Select buttonWasTapped:
from the popover.