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);
手机扫一扫
移动阅读更方便
你可能感兴趣的文章