Guest User

Untitled

a guest
May 25th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. - (id)initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier {
  2. if (self = [super initWithFrame:frame reuseIdentifier:reuseIdentifier]) {
  3. // Initialization code
  4.  
  5. // we need a view to place our labels on.
  6. UIView *myContentView = self.contentView;
  7. UIFont *font = [UIFont systemFontOfSize:20];
  8. self.time.font = font;
  9. /*
  10. init the title label.
  11. set the text alignment to align on the left
  12. add the label to the subview
  13. release the memory
  14. */
  15. self.time = [self newLabelWithPrimaryColor:[UIColor blackColor] selectedColor:[UIColor whiteColor] fontSize:16.0 bold:NO];
  16. [myContentView addSubview:self.time];
  17. }
  18.  
  19. return self;
  20. }
Add Comment
Please, Sign In to add comment