Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COThis is really great information. I honestly didn't know ASIHTTPRequest was not under development. I'm definitely going to have to change up my framework after the first version of my app. As for the caching, I have a global download cache set, but it's only marginally helping. The bulk of the issue rests with the time it takes to actually render the UIImage in the UITableViewCell.
      singulars
    2. COYep, because you're always initializing the UIImage with `imageWithData:`. Scrolling does lazy loading, therefore every time a cell becomes visible, you call `imageWithData:` again. That's very inefficient. So, you can either use ASIHTTPRequest's cache which stores the image itself (not the NSData) for you, or you can cache the actual UIImage objects. If you really need to create every image anew every time the user scrolls (which I doubt) you can use ElJay's answer with GCD.
      singulars
    3. COI think that I need to cache the actual UIImage objects in this case. When I leave it up to ASIHTTPRequest, there's a slight delay in loading the image, which is unacceptable. The scrolling speeds up tremendously, but the view is worse. However, when I modify ElJay's approach to store NSData in my model, there's no image loading, but still some lag. Now I know that's because there's overhead associated with imageWithData. What I'm going to do is store the UIImage in my Core Data model so I don't have to keep calling imageWithData.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload