3

I am new to iOS developer, using Storyboard I get Image from the URL and load an image to the UITableviewcell when scroll the tableview the table will scroll very slowly and struck to scroll.

Echilon
  • 10,064
  • 33
  • 131
  • 217

3 Answers3

4

Here check ou the following links , you should use lazy loading for this,

Lazy load images in UITableView

Loading images from a URL into a UITableViewCell's UIImageView

Load image to a tableView from URL iphone sdk

Lazy load images in UITableViewCell

Community
  • 1
  • 1
IronManGill
  • 7,222
  • 2
  • 31
  • 52
  • using json parser i get image from url and i load to tableview problem is when i am scroll the table view it will struck to scroll –  Nov 09 '12 at 06:26
0

You should use lazy loading of image in your cells. The slowness or stuck is happening because you are fetching the image (..ie a network activity) in your main thread or the UI thread.

You can get a lot of tutorial in net for loading images async. Here is a tutorial from Apple : link

jithinroy
  • 1,885
  • 1
  • 16
  • 23
0

see the answer from this question for AsynchImage.. iphone-download-asynchronous

also use AsynchImage for download image and set in UITableViewCell as a image

asynchronous-loading-of-images-in-a-uitableview

Community
  • 1
  • 1
Paras Joshi
  • 20,427
  • 11
  • 57
  • 70