Reputation: 2189
I am using following code
[contestPic sd_setImageWithURL:[NSURL URLWithString:imageURL] placeholderImage:[UIImage imageNamed:@"blackSquare.png"] options:SDWebImageProgressiveDownload];
There is only one image on screen and called from scrollViewDidEndDecelerating .Even if i download image in background no effects it take same time for first time,Once loaded then second time it take from cache instantly. How can i improve the image loading time for first time?
Upvotes: 0
Views: 427
Reputation: 559
you can use progressive image loading and can use apple's imgaeIO framework for this.this link will help you in this https://www.airpair.com/ios/posts/loading-images-ios-faster-with-progressive-jpegs
Upvotes: 1