1
我有3個屬性的音頻類: 藝術家,標題和持續時間。正如你所看到的(在截圖中)我已經成功地放置了2個道具。 如何將持續時間放入UITableViewCell,如果可能的話,我寫了「持續時間」?uitableviewcell細節
帖木兒
這裏是截圖
http://i.stack.imgur.com/Cl8NP.jpg
我有3個屬性的音頻類: 藝術家,標題和持續時間。正如你所看到的(在截圖中)我已經成功地放置了2個道具。 如何將持續時間放入UITableViewCell,如果可能的話,我寫了「持續時間」?uitableviewcell細節
帖木兒
這裏是截圖
http://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";
無論如何,我需要添加新標籤?有像cell.delailedLabel這樣的標籤嗎? –
nope ........... –
謝謝你:) –