//1、获取程序的Home目录NSString*homeDirectory=NSHomeDirectory();NSLog(@"path:%@",homeDirectory);//path:/Users/ios/Library/Application Support/iPhone Simulator/6.1/Applications/BF38C9E3-1A4A-4929-B5F2-3E46E41CC671//2、获取document目录NSArray*paths=NSSearchPathForDirectoriesInDomains(NSDocumentDire...