`
zl4393753
  • 浏览: 340174 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

iOS Data Storage Guidelines

 
阅读更多
iCloud includes Backup, which automatically backs up a user’s iOS device daily over Wi-Fi. Everything in your app’s home directory is backed up, with the exception of the application bundle itself, the caches directory, and temp directory. Purchased music, apps, books, the Camera Roll, device settings, home screen and app organization, messages, and ringtones are backed up as well. Because backups are done wirelessly and stored in iCloud for each user, it’s best to minimize the amount of data that’s stored for your app. Large files will lengthen the time it takes to perform a backup and consume more of a user’s available iCloud storage.

To ensure that backups are as efficient as possible, be sure to store your app’s data according to the following guidelines:

1. Only documents and other data that is user-generated, or that cannot otherwise be recreated by your application, should be stored in the <Application_Home>/Documents directory and will be automatically backed up by iCloud.

2. Data that can be downloaded again or regenerated should be stored in the <Application_Home>/Library/Caches directory. Examples of files you should put in the Caches directory include database cache files and downloadable content, such as that used by magazine, newspaper, and map applications.

3. Data that is used only temporarily should be stored in the <Application_Home>/tmp directory. Although these files are not backed up to iCloud, remember to delete those files when you are done with them so that they do not continue to consume space on the user’s device.

4. Use the "do not back up" attribute for specifying files that should remain on device, even in low storage situations. Use this attribute with data that can be recreated but needs to persist even in low storage situations for proper functioning of your app or because customers expect it to be available during offline use. This attribute works on marked files regardless of what directory they are in, including the Documents directory. These files will not be purged and will not be included in the user's iCloud or iTunes backup. Because these files do use on-device storage space, your app is responsible for monitoring and purging these files periodically.


存入Documents目录,但是每个文件打标,不准备份的方法:
http://developer.apple.com/library/ios/#qa/qa1719/_index.html#//apple_ref/doc/uid/DTS40011342

分享到:
评论

相关推荐

    iOS Human Interface Guidelines中文版.pdf

    本书译自 Apple 官方推出的设计指南《iOS Human Interface Guidelines》,完整(注意!是完整!满满都是泪啊!)翻译了该指南所有内容,在文字和排版上也尽可能保证忠实还原,但并未取得官方翻译授权。

    ios Human Interface Guidelines翻译版

    《iOS Human Interface Guidelines》是Apple公司为开发者提供的一份详细指南,旨在帮助他们创建符合iOS平台用户界面标准和用户体验设计原则的应用程序。这份翻译版对于iOS开发初学者来说尤其宝贵,因为它提供了深入...

    iOS Human Interface Guidelines

    《iOS人机界面指南》是由苹果公司发布的一套详细的应用程序界面设计规范,为开发者提供了如何创建出符合苹果设计哲学的iOS应用程序的指导。该指南的内容涵盖了设计基本原则、用户界面元素、用户体验最佳实践、以及与...

    iOS 人机交互指南(iOS Human Interface Guidelines)

    ### iOS 人机交互指南(iOS Human Interface Guidelines) #### Introduction 《iOS 人机交互指南》是一份由苹果公司发布的官方文档,旨在为开发者提供一套全面的设计原则与实践指南,帮助他们创建美观、易用且...

    iOS Human Interface Guidelines 翻译版.pdf

    ### iOS Human Interface Guidelines 翻译版:深入解读与应用 #### 一、核心理念与设计原则 **标题与描述解读:** "iOS Human Interface Guidelines 翻译版"是一份由苹果公司官方发布,旨在指导iOS应用设计的重要...

    iOS Human Interface Guidelines for IOS7

    ### iOS Human Interface Guidelines for iOS7 #### UIDesignBasics(用户界面设计基础) - **设计基本概念**:这部分概述了iOS7中用户界面设计的基本原则,包括如何在设计时考虑内容的重要性、提供清晰度以及利用...

    iOS Human Interface Guidelines iOS 人机交互 (英文版)

    iOS7在界面上最大的变化就是抛弃了苹果使用了多年的拟物化设计,而转投扁平化设计阵营。一时间,业界评论褒贬不一,槽点多多亦不乏溢美之词。我们先暂且不去评判新的图标和整体设计风格的好坏,而是从其背后的设计...

    CSA Cloud Data Encryption Guidelines.pdf

    CSA Cloud Data Encryption Guideline, 有助CISSP, CCSP 等考試

    【船级社】 ClassNK Data Quality Guidelines Edition 1.0 2021-08.pdf

    【船级社】 ClassNK Data Quality Guidelines Edition 1.0 2021-08.pdf

    ios-human-interface-guidelines:iOS 设计指南(iOS Human Interface Guidelines 中文版)

    iOS Human Interface Guidelines 官方英文原版: 目的 翻译官方文档,目录见文件 操作示例 如何添加图片 前提:官网上的所有图片都已经下载下来放入「images」文件夹,图片的文件名没做任何修改。 1、请引用「images...

    iOS_Human_Interface_Guidelines_.pdf

    《iOS Human Interface Guidelines》是苹果公司为iOS应用开发者和设计师提供的设计规范,旨在创造卓越的用户体验,遵循平台特性和交互设计原则。这份指南是2010年iPad和iPhone HIG整合后的版本,旨在帮助中国的设计...

    最新版可复制文字】 JEDEC JEP160A 2022 LONG-TERM STORAGE GUIDELINES

    【JEDEC JEP160A 2022 长期存储指南】是电子固态晶圆、芯片及器件的最新存储标准,由JEDEC固态技术协会发布。这个指南是在2011年JEP160的基础上进行了修订,于2022年8月更新,旨在为电子行业的长期存储实践提供明确...

    2018大数据技术指南(Technical Guidelines for Big Data 2018).rar

    《2018大数据技术指南》是一份详细阐述大数据技术领域的综合资料,涵盖了该年度内的最新发展、关键技术和应用实践。大数据,这个概念在近年来已深入人心,它涉及到数据的采集、存储、处理、分析和可视化等多个层面,...

    iOS.10.Swift.Programming.Cookbook.Solutions.and.Examples.for.iOS.Apps.epub

    This classic book hones in on the most exciting features of each release of iOS, providing you with introductory guidelines to the tools in iOS and Xcode that will distinguish your app and cause users...

    NIST:Security Guidelines for Storage Infrastructure

    存储安全方向。美国国家标准指导文献。 NIST Special Publication 800-209 Security Guidelines for Storage Infrastructure

Global site tag (gtag.js) - Google Analytics