NSString *newPath = [NSString stringWithFormat:@"%@%@",[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0],@"/test.plist" ];
NSLog(@"newPath = %@", newPath);
这里的dic就是你要写什么东西到这个路径下面。
[dic writeToFile:newPath atomically:YES];