我们必须在iPhone应用程序中存储下载数据吗? [英] Where we have to store download data in iPhone application?

查看:104
本文介绍了我们必须在iPhone应用程序中存储下载数据吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用应用程序购买并在用户/文档文件夹中付款后下载数据。 Apple拒绝了我的应用程序,它表示您没有遵循iOS数据存储指南。

I am working on In-App-Purchase and downloading data after payment in users /Documents folder. Apple has rejected my application it's says you are not following iOS Data Storage guideline.

任何人都可以帮助我在我的应用程序中实现iCloud功能吗?

Can any one help me how to implement iCloud functionality in my application?

谢谢

推荐答案

根据iOS数据存储指南您可能应该将购买的数据存储在 Application_Home / Library / Caches 目录中。下载的数据不属于Documents文件夹。

According to the iOS Data Storage Guidelines you should probably be storing your purchased data inside the Application_Home/Library/Caches directory. The downloaded data does not belong in the Documents folder.

Apple提供了各种目录的列表以及您应该在文件系统编程指南
最重要的包括:

Apple provides a list of the various directories and what you should put in those in the File System Programming Guide. The most important includes:


  • Application_Home / Documents / 使用此目录存储用户文档和应用程序数据文件。

  • Application_Home / Library / 此目录是非用户数据文件的顶级目录。

  • Application_Home / tmp / 使用此目录编写在应用程序启动之间不需要保留的临时文件。

  • Application_Home/Documents/ Use this directory to store user documents and application data files.
  • Application_Home/Library/ This directory is the top-level directory for files that are not user data files.
  • Application_Home/tmp/ Use this directory to write temporary files that do not need to persist between launches of your application.

通常,这意味着用户不打算看到的任何内容都应该进入目录目录中的目录。通常你会使用其中一个,但是有一个更大的列表,在文件系统编程指南

Generally this means that anything that is not intended to be seen by the user should go into a directory inside the Library directory. Typically you would use one of these, but there is a larger list with more specialized uses in the File System Programming Guide:


  • 应用程序支持 :使用此目录存储除与用户文档关联的文件之外的所有应用程序数据文件。

  • 缓存:使用此目录编写任何特定于应用程序的支持文件您的应用程序可以轻松重新创建

  • Application Support: Use this directory to store all application data files except those associated with the user’s documents.
  • Caches: Use this directory to write any application-specific support files that your application can recreate easily

应用程序支持文件夹已备份,但缓存不是。

The Application Support folder is backed up but the Caches is not.

这篇关于我们必须在iPhone应用程序中存储下载数据吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆