V
V
Vitaly2017-02-11 13:03:33
Objective-C
Vitaly, 2017-02-11 13:03:33

How to make an array of buttons in objective c?

All the best! I want to use my buttons on the viewcontroller.
There should be 10 buttons. Did you eat some kind of option, something like an array of buttons, and then choose the actions of the button using swich?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Petrushka, 2017-02-11
@Scorpiored88

Read about iboutletcollection
If you need to detect the Action of buttons - make 1 Action for all buttons, set a tag for the buttons and look at the tag in the action
And yes, in this question the language is not important

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question