Not sure if you understand what you want, but you get the user's home directory with:
NSArray *docDirs = NSSearchPathForDirectoriesInDomains(
NSDownloadsDirectory,
NSUserDomainMask, YES);
NSString *doc = [docDirs objectAtIndex:0];
And then you can build the path:
NSString *path = [NSString stringWithFormat:@"%@/x.pdf", doc];
source
share