NSArray *arr = @[@"lnj", @"lmj", @"jjj", @"xcq"]; BOOL flag = [arr writeToFile:@"/Users/LNJ/Desktop/persons.plist" atomically:YES]; NSLog(@"%i", flag);
NSArray *newArr = [NSArray arrayWithContentsOfFile:@"/Users/LNJ/Desktop/persons.xml"]; NSLog(@"%@", newArr);
原文:http://www.cnblogs.com/xufengyuan/p/6636854.html