第一种写法:
NSArray *myPaths=NSSearchPathForDirectoriesInDomains(NSDocumentDictory,NSUserDomainMask,YES);
NSString *myDocPatch=myPath[0];
NSString *filename=[myDocPath stringByAppendingPathComponent:@”properties.plist”];
第二种写法:
NSArray *myDocPatch=[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"];
NSString *filename=[myDocPatch stringByAppendingPathComponent:@”properties.plist”];
|
|