Set UIImageView Size in UITableViewCell when UIImage loaded from URL?

前端 未结 3 2050
天命终不由人
天命终不由人 2021-02-03 13:32

Loading images from URL into a uiimage and then adding those images to a uitableviewcell uiimageview, like below code. I do not know the image sizes, but need to force them to

3条回答
  •  情歌与酒
    2021-02-03 14:12

    I had this problem when I was mistakenly using the imageView property of the cell rather than the property for the custom UIImageView I created in the storyboard. When I used the proper reference to the custom view, it all worked as expected. I suspect some of you may have done similar.

提交回复
热议问题