Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. @property (strong, nonatomic) IBOutletCollection(UILabel) NSArray *customLabels;
  2.  
  3. for (UILabel *label in customLabels) {
  4. label.layer.cornerRadius = 5.0;
  5. }
  6.  
  7. UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
  8.  
  9. // be sure to do this step or you won't see your button
  10. button.frame = CGRectMake(...);
  11.  
  12. // Customize your button here
  13.  
  14. [self.view addSubview:button
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement