Strange UITableViewCellStyleSubtitle + [cell imageView] behaviors

冷暖自知 提交于 2019-12-06 06:29:05

I solved the issue - I had to just make my SDWebImage placeholder images the same aspect ratio as the images I'm trying to load. As my server forces all my images to be 95x95, this was a relatively easy fix; I simply updated my placeholder.png to also be 95x95 (instead of some odd dimension it was, like 92x132)

[[cell imageView] setContentMode:UIViewContentModeScaleAspectFit];

this line makes the imageview show the image in its original resolution but fit to the image view size.

the main drawback is if u have the images in different sizes then each image will show i different sizes.... it should not looks good...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!