Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int i = 1;
- UIView *view = viewButtons;
- for(UIButton *btnItem in view.subviews)
- NSString *strValue = [@(i) stringValue];
- btnItem.backgroundColor = [UIColor lightGrayColor];
- [btnItem setTitle: strValue forState:UIControlStateNormal];
- i++;
- usleep(1000 * 1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement