Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can multiple buttons have one outlet?

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.

like image 758
Joey Avatar asked Dec 20 '22 23:12

Joey


1 Answers

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.

like image 115
Michael Dautermann Avatar answered Jan 05 '23 19:01

Michael Dautermann