gpt4 book ai didi

ios5 - 单色触摸 : How to set the "do not back up" attribute

转载 作者:行者123 更新时间:2023-12-02 09:59:17 24 4
gpt4 key购买 nike

我正在尝试遵循 Apple 关于本地文件存储的以下指南。如何在 MonoTouch 中为我的应用程序创建的文件设置“不返回”属性?

技术文档在这里,但我在 MonoTouch 中找不到: https://developer.apple.com/library/ios/#qa/qa1719/_index.html

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."

最佳答案

MonoTouch 5.2 起可用(和 iOS 5.0.1)MonoTouch.Foundation.NSFileManager 类型内的方法 SetSkipBackupAttributeGetSkipBackupAttribute .

关于ios5 - 单色触摸 : How to set the "do not back up" attribute,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9354928/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com