0

有谁知道如何在 UA 的 StoreFront 中设置自定义目录?

根据 Apple 关于数据存储位置的新规则,UA 在 /Library/ua/download 中的正常执行方式存在问题。

它需要设置为/Library/Cashes/ua/download。他们在 StoreFront 中占有一席之地;

+ (BOOL)setDownloadDirectory:(NSString *)path;
+ (BOOL)setDownloadDirectory:(NSString *)path withProductIDSubdir:(BOOL)makeSubdir;

但我不知道如何改变“路径”。有大佬修过吗?

感谢帮助。

4

1 回答 1

0

更新:看这里: https: //support.urbanairship.com/customer/portal/questions/66315-rejected-app-with-2-23-ios-data-storage-guidelines

如何更改ThePat。

之后,您将需要更改UAGlobal.h.

查找名为:UAGlobal.hinside Urban Airship 文件的文件

你会发现那里的路径,比如

   #define kPendingProductsFile [[NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,\
    NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingString: @"/ua/pendingProducts.history"];

我相信你可以简单地改变路径结束。

祝你好运

沙尼

于 2012-01-03T15:25:17.987 回答