Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
- {
- self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
- if (self) {
- // Initialization code
- label = [[UILabel alloc] initWithFrame:self.bounds];
- label.backgroundColor = [UIColor yellowColor];
- label.text = @"test";
- [self.contentView addSubview:label];
- [label release];
- }
- return self;
- }
- - (void)dealloc {
- [super dealloc];
- [label release];
- }
- - (void)layoutSubviews
- {
- [super layoutSubviews];
- label.frame = self.bounds;
- }
- @end
Add Comment
Please, Sign In to add comment