Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (id)initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier {
- if (self = [super initWithFrame:frame reuseIdentifier:reuseIdentifier]) {
- // Initialization code
- // we need a view to place our labels on.
- UIView *myContentView = self.contentView;
- UIFont *font = [UIFont systemFontOfSize:20];
- self.time.font = font;
- /*
- init the title label.
- set the text alignment to align on the left
- add the label to the subview
- release the memory
- */
- self.time = [self newLabelWithPrimaryColor:[UIColor blackColor] selectedColor:[UIColor whiteColor] fontSize:16.0 bold:NO];
- [myContentView addSubview:self.time];
- }
- return self;
- }
Add Comment
Please, Sign In to add comment