當使用UITableViewCell和UITableViewCellStyleValue1風格時,textTextLabel很長時textLabel.text被截斷。如何防止在使用UITableViewCellStyleValue1時截斷textLabel?
static NSString *CellIdentifier = @"Cell";
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease];
cell.textLabel.text = @"Publisher";
cell.detailTextLabel.text = @"This Is A Very Long String";
所以,問題是如何給力「發佈」而不被截斷detailTextLabel的regarldess長度要顯示?
P.S.我是這個社區的新成員,所以我無法發佈可以更好地說明問題的圖像。對不起...
不幸的是,沒有工作......謝謝你的嘗試。 – Joshua 2010-07-17 21:12:17
雖然爲我工作。 – nont 2011-01-17 18:46:41