I’m trying to code myself the Apple Photo.app for iOS.
All is good but when I select an album to see all my pictures it’s a bit slow to load all my pictures. All my thumbnail are saved in a database. I manage them with Core Data.
So when I select an album I create a specific request and add all my thumbnail in a scrollview. But I have to wait to see all my thumbnail.
In Photos.app when I select an album all pictures are directly loaded.
How has Apple improved that ?
Thanks a lot !
I am assuming that you are using
UITableViewCellswith 4 images in each, and that you are recycling the cells.JPEGs take a lot of decompression CPU cycles. There was a specific mention of this at Apple’s recent developer conference. Most likely this is what is slowing you down.
Solution: use PNGs and make sure they are absolutely optimized for the size and resolution that is are the minimum requirements for the thumbnail images. Core data should be fast enough to provide smooth scrolling for thousands of thumbnail images.