I’m probably missing the basics here… Is there a way to link more than one object to a method at a time using Interface Builder in Xcode 4.2?
I set tons of UIButtons in my UIView. All of them call just one method (let’s say - (IBAction)buttonPushed:(UIButton *)aButton) that should do something different depending on the sender. I can’t figure out a way to link them all with my method at a time. Any advice will be very appreciated…
N.B. I’m using Xcode 4.2 on Snow Leopard, without storyboard.
It seems it is not possible to link more than one object at a time in Xcode 4.2 using IB.
I ended up with a for loop in my code, as first suggested by Phillip Mills (+1 to his comment).
Here my code:
Thanks everybody for your help!!!