I have tableView and need to load image from URL. I have an array that contains the URLs of images and when the page loads I need to load all the images into the tableview. Note that, not from a single URL, have an array with different URLs. How can I implement that? Please help
Thanks.
You can use Lazy Loading when you want to download Images from internet
You can use GCD to load images in background thread, like this:
Hi. But you probably need to add a dispatch_release(concurrentQueue); to be sure no leak. – Franck Aug 25 at 19:43
You need to create your custom cell for lazy loading. This will allow you to download images correctly and without freezing. Here is nice example how to do this: Asynch image loading
You can use SDWebImage which permits very easy and speed loading of images in UITableView.
https://github.com/rs/SDWebImage
Try this code,imagearray contains urls of image
With afnetworki, it is too easy.