简体   繁体   English

与iPad上的数据分开部署应用程序

[英]deploying app separately from data on iPad

I'm working on an iPad app which is deployed manually from iTunes. 我正在使用从iTunes手动部署的iPad应用程序。 The app requires a large amount of data (videos). 该应用程序需要大量数据(视频)。 The data is static, the app is being developed. 数据是静态的,正在开发应用程序。 It is inconvenient to deploy all the data each time the app is deployed. 每次部署应用程序时都无法部署所有数据。

What are my options to deploy the application itself separately from the data? 我有什么选择与数据分开部署应用程序本身?

Use iOS file sharing to get the files into the Documents directory for your app. 使用iOS文件共享将文件放入您应用的“文档”目录中。 The documents directory will be preserved across upgrades as you develop the app, so you only have to copy it once. 在开发应用程序时,文档目录将在升级过程中保留,因此您只需复制一次即可。

If there's a lot of files, you can copy a zip file instead and unpack it on the first run of your app using SSZipArchive . 如果文件很多,则可以复制一个zip文件,然后使用SSZipArchive在应用程序的第一次运行中将其解压缩。

Another option would be to stick the data on a web server and retrieve it on the first run, again storing it in the Documents directory. 另一个选择是将数据粘贴在Web服务器上,并在第一次运行时将其检索,然后再次将其存储在Documents目录中。

If you want to use any of these approaches in your final deployed app, be sure to make the files so that they're not backed up to iCloud. 如果要在最终部署的应用程序中使用这些方法中的任何一种,请确保进行文件制作,以免将其备份到iCloud。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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