iPhone OS 3.2文件共享路径

iPhone OS 3.2文件共享路径,iphone,filesystems,ipad,iphone-sdk-3.2,Iphone,Filesystems,Ipad,Iphone Sdk 3.2,目前,我有我的文件路径和文件 NSURL *storeUrl = [NSURL fileURLWithPath: [[self applicationDocumentsDirectory] stringByAppendingPathComponent: @"Shared\PartyPlanner.sqlite"]]; 这允许我与iTunes共享该文件,而不仅仅是在“applicationDocumentsDirectory\Shared”中使用“PartyPlanner.sqlite” 我在“

目前,我有我的文件路径和文件

NSURL *storeUrl = [NSURL fileURLWithPath: [[self applicationDocumentsDirectory] stringByAppendingPathComponent: @"Shared\PartyPlanner.sqlite"]];
这允许我与iTunes共享该文件,而不仅仅是在“applicationDocumentsDirectory\Shared”中使用“PartyPlanner.sqlite”

我在“applicationDocumentsDirectory”中有“SharedPartyPlanner.sqlite”

是否有更干净或更简单的方法来访问applicationDocumentsDirectory中的共享文件夹?

在类UNIX系统(包括iPhone操作系统)中,目录分隔符是
/
,而不是
\

此外,在类C语言(包括Objective-C)中,字符串中的
\
用于转义字符,例如
\n
→ 一条新路线。如果文件名中确实需要反斜杠,则需要键入
Shared\\PartyPlanner.sqlite