I have a UIButton array like this:
@property (nonatomic, retain) IBOutletCollection(UIButton) NSArray *btn_Impact_Collection;
and I have this function:
- (IBAction)impactAction:(id)sender;
I have nine buttons in the XIB file, each button is connected to the btn_Impact_Collection array using a collection of referenced outputs. In addition, the Touch_inside property of each button is connected to the ImpactAction function.
Now that the button is pressed, the ImpactAction function is called, but inside this function, how can I find out which button is pressed?
Thanks in advance for your reply!
benza source share