jjzjj

NSURLIsExcludedFromBackupKey

全部标签

ios - 如何将 NSURLIsExcludedFromBackupKey 与 Adob​​e Air 一起使用?

Apple拒绝了我们的申请,因为我们在localStorage(/Documents)下存储供离线查看的文件这是消息的摘录,我们收到了:Datathatcanberecreatedbutmustpersistforproperfunctioningofyourapp-orbecausecustomersexpectittobeavailableforofflineuse-shouldbemarkedwiththe"donotbackup"attribute.ForNSURLobjects,addtheNSURLIsExcludedFromBackupKeyattributetoprev

ios - NSURLIsExcludedFromBackupKey - 应用程序必须遵循 iOS 数据存储指南,否则将被拒绝

我的应用程序被拒绝,因为似乎7MB存储在文档文件夹中,并且它们会自动发送到icloud。所以我循环了所有将通过这种方法写入文档文件夹的文件:-(BOOL)addSkipBackupAttributeToItemAtURL:(NSURL*)URL{constchar*filePath=[[URLpath]fileSystemRepresentation];constchar*attrName="com.apple.MobileBackup";if(&NSURLIsExcludedFromBackupKey==nil){//iOS5.0.1andloweru_int8_tattrValue

iphone - 由于 _NSURLIsExcludedFromBackupKey 错误导致 Phonegap 1.9.0 应用程序崩溃

我正在尝试使用iOS在Phonegap1.9.0中加载HelloWorld示例,但我在这样做时遇到了一些问题......我正在关注:http://docs.phonegap.com/en/1.9.0/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS它说AppleMach-OLinker(Id)错误。当我点击错误时,它说:Undefinedsymbolsforarchitecturei386:"_NSURLIsExcludedFromBackupKey",referencedfrom:-[CDVF

iOS 数据存储问题 - 即使在 NSURLIsExcludedFromBackupKey 之后也被拒绝

我的应用因未遵循“iOS数据存储指南”而多次被应用商店拒绝。我已经按照applereviewteam的建议给所有的文档目录都标上了“不备份”的属性,如图:-(BOOL)addSkipBackupAttributeToItemAtPath:(NSString*)filePathString{NSURL*URL=[NSURLURLWithString:filePathString];NSError*error=nil;BOOLsuccess=[URLsetResourceValue:[NSNumbernumberWithBool:YES]forKey:NSURLIsExcludedFrom

iphone - NSURLIsExcludedFromBackupKey 是否递归

我的文档目录中有一个巨大的文件和目录树用于缓存。按照建议,我将使用NSURLIsExcludedFromBackupKey来防止iTunes使用应用程序保存此数据。我可以在我的根目录URL上使用它一次吗[rootDirectoryURLsetResourceValue:[NSNumbernumberWithBool:YES]forKey:@"NSURLIsExcludedFromBackupKey"error:&error];或者我必须为每个文件调用它吗? 最佳答案 是的,您可以将要排除的目录的NSURL传递给它。-(BOOL)ad
12