Download image asynchronously

后端 未结 8 918
滥情空心
滥情空心 2020-12-03 19:46

I need to download an image from the web and display it in an ImageView. Presently I am using SDWebImage (It is an asynchronous image downloader wi

8条回答
  •  星月不相逢
    2020-12-03 20:29

    I think that the bug that you describe may occur because when you "go back" release some objects that can be delegates of connections that are still running. For avoid crashes, you should cancel the connections before release or dealloc any object that could be a delegate of a running connection.

    Another alternative for image async download is http://allseeing-i.com/ASIHTTPRequest/ .

提交回复
热议问题