Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

john903

macrumors member
Original poster
Apr 11, 2008
66
0
I have about 25 buttons and I want to connect the "Touch Down" event to the same action for all buttons. I can do this manually for each button but is there a quick way to do this for all the buttons?
 
in IB, if you have action, drag from the action to a button to link it up. Then just do it again with another button. The little circle by the action change to a + letting you know you can add more items to it.

Easy as pie.
 
In Interface Builder. Yes, but I was wondering if it was possible to do it all at once so I could connect 30 buttons to a single action with one drag versus doing it 30 times.
 
No shortcut I know of unless you want to set them up in code. Luckily you only have to do it once.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.