开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜