Is there is any way to connect multiple UIButtons to one IBOutlet? I want to to do this so I can disable and change the alpha setting for a couple buttons at the same time rather than having an outlet for each button I want to modify.
Sounds like you might be looking for IBOutletCollection
(documentation linked for you).
I haven't actually made use of this yet, and it can only be used with an array of things. But I'm thinking these things (in the array) could be buttons.
for(UIButton *button in yourCollectionOfButtons){ if (button.tag ==3){ //do stuff}}
- Michael Dautermann 2012-04-04 02:51