简体   繁体   中英

iOS where should I download and store index.html

I want to download a Javascript/Html5 code in zip format and then unzip the code and load the index.html file in webview in iOS.

So where should I save this zip folder on iPhone ? Document Directory or cached Directory ?

All data that can be downloaded again most correct be stored in cached Directory. Files stored in Document folder will be synchronized with iCloud. See link . In your case, I think you need to store in cached. Hope it helps you.

Better store it in document directory since your file should be available always.In Cache directory,you should store only those files which can be recreated easily. System may delete content of this directory (to free up the disk space) when it is required.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM