将图像添加到uitableview单元格

我有一个表格视图,如何将图像添加到此单元格的左侧

cell.imageView.image=[UIImage ImageName:@“image.png”];

更新:
正如Steven Fisher所说,这只适用于样式为UITableViewCellStyleDefault(默认样式)的单元格。对于其他样式,需要将UIImageView添加到单元格的contentView

发表评论