Advertisement
Guest User

Untitled

a guest
Aug 27th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. int i = 1;
  2. UIView *view = viewButtons;
  3. for(UIButton *btnItem in view.subviews)
  4.  
  5.  
  6.  
  7. NSString *strValue = [@(i) stringValue];
  8. btnItem.backgroundColor = [UIColor lightGrayColor];
  9. [btnItem setTitle: strValue forState:UIControlStateNormal];
  10. i++;
  11.  
  12. usleep(1000 * 1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement