开发者

Downloaded files disappearing on update

开发者 https://www.devze.com 2023-04-09 09:45 出处:网络
I have an app that downloads several pdfs and images. It all work perfectly fine, I store information of those files in core data. My problem comes when I send out updates of the app, all the informat

I have an app that downloads several pdfs and images. It all work perfectly fine, I store information of those files in core data. My problem comes when I send out updates of the app, all the information in core data is transferred to the new version correctly but the files are nowhere to be found.

I guess I can write a routine to run when users up开发者_StackOverflowdate the app and download the files all over again. I just believe there is a better way to go by preserving the files.

Has anybody experience on this?


You could store the files in the Documents dir, there they will be not deleted unless you remove the app from the device.

0

精彩评论

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

关注公众号