Possible Duplicate:
Objective C: what is a “(id) sender”?
What is the (id)sender for in:
-(IBAction)action:(id)sender;
Thanks for your help!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is whatever object has called the action method; e.g., a button.
You can use the id to check which of a set of buttons called the action, for instance.