I am writing an app that takes a picture using the iDevice camera and stores it on the file system as a PNG. When starting my app, I load a UICollectionView with the images found on the file system.
The issue I am facing is that the load time for the app (even when its only loading 6 images is approximately 4 seconds which is unacceptable. I have implemented GCD to load images on a background thread (which keeps the UI snappy) however I really want the app to start far quicker with images loaded.
My thoughts are:
I suspect the initWithContentsOfFile
is taking ages to load the full size image.
I thought about generating a separate thumbnail image when a picture is taken and load that instead.
Ultimately when I look at Apple's Photo app, it loads "instantly" and has 10's of pictures in view.
Does anyone have any suggestions for how I can load the images faster or at least appear to?
Thanks!