【发布时间】:2010-08-08 22:24:14
【问题描述】:
我有以下代码:
static NSString *CellIdentifier = @"Cell";
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease];
cell.textLabel.text = @"Publisher";
cell.detailTextLabel.text = @"This Is A Very Very Long String";
结果如下:(只有第一行是相关的)
看起来,详细信息文本与“发布”标题重叠,因此两个字符串都被截断。 我希望永远不要将“发布”标题截断如下:
这可以使用 UITableViewCellStyleValue1 吗?我看到很多帖子建议创建一个自定义单元格,但这真的是唯一的方法吗?
谢谢, 乔什
【问题讨论】:
-
运气好能解决这个问题吗?
-
还是不行... 有趣的是 iPhone 模拟器完美地展示了 Publisher。我还需要在 iOS 4.0 设备上进行测试...
标签: iphone uitableview