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 Or something like this Or tell me where the answer is and I myself Access UIButton For each for example Hope this will help you. All the best !!! button 1, button2, button3, button4> & Gt;
Tag Lesson ">
UIButton tag
( Int i = 1; i & lt; = 9; i ++) {UIButton * button = (UIButton *) [self.view viewWithTag: i]; }
Comments
Post a Comment