Reputation: 295
What does (id)sender in -(IBAction)PushButton: (id)sender
stand for ?
Upvotes: 1
Views: 1239
Reputation: 82219
It's the object that triggered the event. E.g. sender will be the button that was pressed.
Upvotes: 2
Reputation: 170849
sender
is an object that triggered an action, so in your case it is probably the button that was tapped.
Upvotes: 2