Which button called the function?
- by StoneBreaker
I have two buttons which call the same function. That functions signature is
- (IBAction)eraseTextField {...}
I would like to figure out what button called the function. So I would like for the functions signature to be something like
- (IBAction)eraseTextField: (id)sender {...}.
Is there a way for the system to know to send the id of the calling object to a function that it calls? Thanks for the help.