【发布时间】:2015-06-27 14:33:01
【问题描述】:
以下代码在 8.3 模拟器上按预期换行为多行;但在 8.3 iPhone 6 上运行时会截断该行。????
代码如下:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *simpleTableIdentifier = @"Active Playlist";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:simpleTableIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:simpleTableIdentifier];
}
cell.textLabel.numberOfLines = 0;
cell.textLabel.lineBreakMode = NSLineBreakByWordWrapping;
cell.textLabel.text = [playList objectAtIndex:indexPath.row];
return cell;
}
【问题讨论】:
标签: ios objective-c iphone ios-simulator tableview