使用下面的代碼我得到text.label而不是detailTextLabel.text。 NSLog顯示正確。cell.detailTextLabel.text not working ... why
cell.textLabel.text = [eventLabels objectAtIndex:indexPath.row];
cell.detailTextLabel.text = [eventFields objectAtIndex:indexPath.row]];
NSLog(@"%@", [eventFields objectAtIndex:indexPath.row]);
我也試過......
cell.detailTextLabel.text = [NSString stringWithFormat:@"%@", [eventFields objectAtIndex:indexPath.row]];
我以前沒有這個問題。有什麼建議麼?
約翰
這是它!!!!我正在使用,但UITableViewCellStyleDefault。我想我使用了當我創建課程時沒有考慮到的內容。非常感謝。 約翰 – user278859 2010-02-27 23:18:25
user278859:如果John已經回答了你的問題,那麼請接受他的回答。如果你不接受正確的答案,有什麼用? – 2010-11-11 08:26:20
像魔術一樣工作 – 2011-04-03 11:28:10