I have app with TableView and cells. In each cell there is UIImageView. All images are stored on server.
I can use two different methods to load images. Which of them should prefer and why?
Method A : Use library like SDWebImage to load image and place it in cellForRowAtIndexPath function. So image will be downloaded when cell is created.
Method B : When i load JSON with image list from server i can create array of UIImages. In each of them i will asynchronously download image from server. And in cellForRowAtIndexPath function i can just assign one of previously created UIImages to current cell image.