In my program, there are 5 five button. Different actions will be performed based on the choice of the button. However, I just assign one IBAction to all button. Is there any method that can help me to detect which button the users choose inside a single IBAction? Thank you so much!
In my program, there are 5 five button. Different actions will be performed based
Share
Assuming your buttons have their
You can change the function like this:
This way you can use the tags for something else (I use them to denote in what stage I am of the interface for example)
PD: You might want your button to be weak, i got them linked as strong for a reason.