What is "(id) sender"
What does (id)sender in -开发者_运维技巧(IBAction)PushButton: (id)sender
stand for ?
It's the object that triggered the event. E.g. sender will be the button that was pressed.
sender
is an object that triggered an action, so in your case it is probably the button that was tapped.
精彩评论