开发者

iPhone: how to download media files and save them on device

开发者 https://www.devze.com 2023-01-26 18:21 出处:网络
I am ne开发者_JAVA技巧w in the iOs world and I need help to implement small feature in my application.

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);
0

精彩评论

暂无评论...
验证码 换一张
取 消