IPad - how should I distribute stand-alone web content to use UIWebView in an application?

I am creating an application that must be downloaded for web content for offline viewing on an iPad. I am currently downloading web content from the Internet for testing and displaying it using UIWebView. The implementation of this was quite simple. Now I need to make some changes to support offline content. Ultimately, this offline content will be downloaded in user-selectable packages.

As I can see, I have several options, but I might have missed some of them:

  • Download the contents to a ZIP archive (or other archive) and unzip the contents when it is downloaded to your iPad.
  • Put the contents into the SQLite database. This seems to require some third-party libraries like FMDB .
  • Use Master Data . As far as I understand, this supports several storage formats, including SQLite.
  • Use the file system and download each necessary file individually. Well, this is actually not a package, but perhaps this is the best option.

Considerations / Questions:

  • What are the storage and performance limits for each of these methods? And is there a common storage limit for the iPad app?
  • If I want the user to view the downloaded content, which option is easier to code?
  • , - . - , 1-3?
  • - , , ( 1), . , .
+3
2

, , . (, ..), , . CoreData , , , //etc, . , , , . - I 'd .

:

  • - , iPad. , , , , . , - .
  • CoreData . . , , .
  • ? WebView ://URL , ?
  • .

, , , , . .

, , .

+1

xml , , , . , xml . . . , .

, XML , , , .

0

Source: https://habr.com/ru/post/1760229/


All Articles