Reputation: 4929
I've got Audio class with 3 properties: Artist, Titlle and Duration. As you can see (on screenshot) i've put 2 props succesfully. How to put duration into UITableViewCell where i've written "Duration" if it's possible?
Timur
here is screenshot
https://i.sstatic.net/Cl8NP.jpg
Upvotes: 1
Views: 131
Reputation: 25692
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:...............
UILabel *durationLabel =[[UILabel alloc]initWithFrame:CGRectMake(250,12 , 60,20 )];
durationLabel.textColor = [UIColor blueColor];
durationLabel.backgroundColor =[UIColor clearColor];
durationLabel.tag=55;
[cell.contentView addSubview:durationLabel];
[durationLabel release];
}
UILabel *label=(UILabel*)[cell.contentView viewWithTag:55];
label.text = @"vijay";
Upvotes: 2