I have 39 different UIButton variables in my .h file, but I would like to add each of them to an array without having to type out the same thing 39 times.
Is there a
Key Value programming is your friend
Basically you can loop around and create your buttons, and as long as you have properties defined for your buttons you can.
[self setObject:newButton forKey@"button1"];
where button1 is the same string as your variable name.