ios - how to control multiple buttons in one time? -


I'm a beginner iOS developer and I'm Tic Tac TO

I Instead of writing a lot of code, I want to create an array to control all buttons at once

How can I add all the 9 buttons to a 9?

Instead of typing

button 1, button2, button3, button4> & Gt;

Or something like this

Or tell me where the answer is and I myself

Tag Lesson ">

Access UIButton

For each UIButton tag

for example

  ( Int i = 1; i & lt; = 9; i ++) {UIButton * button = (UIButton *) [self.view viewWithTag: i]; }   

Hope this will help you.

All the best !!!

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -