- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试遵循 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
类型内的方法 SetSkipBackupAttribute
和 GetSkipBackupAttribute
.
关于ios5 - 单色触摸 : How to set the "do not back up" attribute,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9354928/
我是一名优秀的程序员,十分优秀!