How to access files in interior of an iPhone App?

Posted by mxg on Stack Overflow See other posts from Stack Overflow or by mxg
Published on 2010-04-30T08:20:35Z Indexed on 2010/04/30 8:27 UTC
Read the original article Hit count: 248

Hi everyone!

I need in a iPhone app to access files that the app is build with(.plist etc). There's an hardcoded way to do this:

NSString *appDir = [[[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)
                      objectAtIndex:0] 
                     stringByDeletingLastPathComponent]
                    stringByAppendingPathComponent:appFolder];

where appFolder is the name of folder app, like "test.app". After the appDir is known, to access files is simple.

Is there any other, not-hardcoded way to have access to files form the app?

Thanks in Advance!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about file-access