Skip to content

Working with fetched images from the web in cells has a few parts we need to get right. Example images flickering caused be the dequeue mechanisms of cells, alerting the user of download activity and caching of images so we are not doing multiple network requests for the same image url.

Notifications You must be signed in to change notification settings

alexpaul/AstronomyPhotos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AstronomyPhotos

Working with fetched images from the web in cells has a few parts we need to get right. Example images flickering caused be the dequeue mechanisms of cells, alerting the user of download activity and caching of images so we are not doing multiple network requests for the same image url.

Steps to working with web downloaded images in cells

  • - added activity indicator to give the user a visual cue that a download is in progress
  • - cell keeps track of its image url so while cells are being dequeued images are not flickering, also resetting image to nil for cleanup in prepareForResuse override method on the cell
  • - caching images so network request is not done again for a seen image

astronomy-photos

About

Working with fetched images from the web in cells has a few parts we need to get right. Example images flickering caused be the dequeue mechanisms of cells, alerting the user of download activity and caching of images so we are not doing multiple network requests for the same image url.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages