Hello all,
I have an app that builds a video from a large number of single frame images. These frame images are currently stored in a folder on my computer and when building my app in simulator I use the path to the folder to load the images.
Now I'm building my App on the device and of course the device cannot find this path. Putting all frame images in the main bundle in XCode is not a good solution because it takes forever. Since the frames will never change, I read that it would be a good idea to "install" them in the NSCachesDirectory on the device.
The question is how can I copy my files from the pc folder to the device cache?
I found some examples how to do this with a single file loaded from a web server, but my device will not have internet access (and if it would have access it would take forever to load thousand single frames).
I'm looking for something like:
if(appStarts && contentIsNotYetCached) {
//grab content from computer ressource folder
//place it in the cache directory on the device
}
Thank you so much for helping me!
Stefanie