iPhone: how to download media files and save them on device
I am ne开发者_JAVA技巧w in the iOs world and I need help to implement small feature in my application.
My question is how to download media files (i.e. mp4) and save them on the device for later use? off course the place that the files will be saved should be accessible from my app only (something similar to Context.getCacheDir() in Android).
thanks -Z
Use your cache dir. For instance, you can find it by calling this code:
NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
精彩评论