ios5 – MonoTouch:如何设置“不备份”属性

ios5 – MonoTouch:如何设置“不备份”属性,第1张

概述我试图遵循Apple关于本地文件存储的以下指导.如何在MonoTouch中为我的应用程序创建的文件设置“不回来”属性? 技术文档在这里,但我在MonoTouch中找不到: https://developer.apple.com/library/ios/#qa/qa1719/_index.html Use the “do not back up” attribute for specifying f 我试图遵循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.”

解决方法 这在0700(和iOS 5.0.1)中可用于Monotouch.Foundation.NSfileManager类型,方法 SetSkipBackupAttributeGetSkipBackupAttribute. 总结

以上是内存溢出为你收集整理的ios5 – MonoTouch:如何设置“不备份”属性全部内容,希望文章能够帮你解决ios5 – MonoTouch:如何设置“不备份”属性所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1053203.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-25
下一篇2022-05-25

发表评论

登录后才能评论

评论列表(0条)

    保存