1

自从我升级到 iOS 7 后,UITableViewCell 上的图像在左侧有一个间隙。iOS 8 beta 似乎也是如此。

在这里阅读了很多答案后,我尝试过:

  • 将 IB 中的自定义单独插图设置为 0
  • 设置 tableView.SeparatorInset = UIEdgeInsets.Zero;

只有自定义表格单元格似乎有效......但我的代码在 iOS 8 中中断(现在一切都搞砸了,图像与文本重叠)。

UIImageView *imageView = [[UIImageView alloc]initWithFrame:IS_IPAD ? CGRectMake(0, 0, 137, 103) : CGRectMake(0, 0, 100, 74)];
imageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"song%d.png", row + 1]];
[cell.contentView addSubview:imageView];

想知道有人对此有解决方案吗?

4

0 回答 0