Can one application access the path of a file from another application on the iPhone?
Can one ap开发者_StackOverflow社区plication access the path of a file from another application on the iPhone?
No. It can not.
If you are talking about one application accessing resources from another or one application modifying another, No. You can, however, access Documents that other applications have created.
To get the Documents path:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsPath = [paths lastObject];
精彩评论