i have 20 round rect buttons. each is owned by a single Controller NSObject. Each is linked to the Controller through the same IBAction "addAA".
I want:
addAA IBAction to know which button was pressed, read the label from that button, and then lookup the label in my dictionary to do a computation.
I don't know how to do this in an efficient manner. The tutorials I have been working with typically have ONE IBAction for EACH button. This would mean 20 different IBActions each performing the same exact function. Maybe I will have all 20 IBActions link to a third function while passing the button's label?
It'd be a lot of repeated code.
Is there anyway to ask the IBAction which button was pressed that caused it to activate??