UIImage在UITableViewCell中调整得太高了

时间:2016-05-27 08:23:20

标签: ios objective-c uitableview uiimageview uiimage

我将自动布局添加到了我的单元格,heightForRowAtIndexPathestimatedHeightForRowAtIndexPath我都有:

return UITableViewAutomaticDimension;

单元格比故事板中的单元格更大,UIImageView变得非常高:

如您所见,红色是创建的额外空间,是UIImageView的背景颜色

As you can see, the red is the extra space being created and is the background color of UIImageView

1 个答案:

答案 0 :(得分:0)

只需从Xcode" pin"设置约束标签