自定义cell中imageView图片加载后 尺寸超出

自定义cell中imageView用autolayout做约束, 网络图片加载后 尺寸超出。

image.png

理论上设置contentMode和clipsToBounds属性即可。

解决:
需要在cell的 layoutsubview中重新设置frame,比较丑陋,autolayout白做。暂时没有发现其他方法。


image.png

你可能感兴趣的:(自定义cell中imageView图片加载后 尺寸超出)