I need an iPhone application to access the files that the application creates (.plist, etc.). There is a hard-coded way:
NSString *appDir = [[[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)
objectAtIndex:0]
stringByDeletingLastPathComponent]
stringByAppendingPathComponent:appFolder];
where appFolderis the name of the folder application, for example, "test.app". Once appDir is known, file access is easy.
Is there any other, not hard-coded way to access files from an application?
Thank Advance
source
share