标签:
NSString *path = [[@"~" stringByExpandingTildeInPath] stringByAppendingString: @"/tmp.txt"]; [path writeToFile:path atomically:YES encoding:NSUTF8StringEncoding error:nil];
iOS获取当前用户的用户路径并写入文件
原文地址:http://www.cnblogs.com/ficow/p/5040825.html