Resize the Table cell height as per downloaded image height

前端 未结 6 855
一生所求
一生所求 2021-01-05 07:04

I am getting the image\'s URL at run time and I want to download & display these images in a table. Images are going to be download asynchronously. What is more importan

6条回答
  •  孤城傲影
    2021-01-05 07:48

    If asynchronous downloading is your real issue, refer to AFNetworking library's UIImageView category. Especially this function:

    - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholderImage
    

    You can include this UIimageview category into your project and set cell images derived from that class.

提交回复
热议问题