English 中文(简体)
概览
原标题:uitableviewcell details

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

页: 1

https://i.stack.imgur.com/Cl8NP.jpg

最佳回答
    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";  
问题回答

暂无回答




相关问题
Plist Hierarchy and All Option

I have a string of data in a plist, which I ve got to display, hierarchically like this: Menu>Chapter>SubChapter>item>item details This might be super simple, in my initial menu, how would I have ...

Disable iPhone table rows

Is there any way to disable the "selectibility" of a UITableView row? Example: I would like to make an appointment for a haircut at a certain time with a certain stylist. What gets displayed to a ...

Nonintrusive visual cue for uitableviewcell

I d like to mark a tableview row in some way that shows it has been clicked by the user. I have a large number of rows and want users to know if they have already visited a particular row. This same ...

TableView oval button for Index/counts

Can someone help me create an index/count button for a UITableView, like this one? iTunes http://img.skitch.com/20091107-nwyci84114dxg76wshqwgtauwn.preview.jpg Is there an Apple example, or other ...

Unable to pushViewController for subview

I have a UINavigationController and I have seperate UIViews that I switch between using a UISegmentControl. On switching the views, I add the view as a subview to my navigation controller s view: [...

热门标签