A K
A K

Reputation: 295

What is "(id) sender"

What does (id)sender in -(IBAction)PushButton: (id)sender stand for ?

Upvotes: 1

Views: 1239

Answers (2)

Ben Clayton
Ben Clayton

Reputation: 82219

It's the object that triggered the event. E.g. sender will be the button that was pressed.

Upvotes: 2

Vladimir
Vladimir

Reputation: 170849

sender is an object that triggered an action, so in your case it is probably the button that was tapped.

Upvotes: 2

Related Questions