- -(IBAction)save:(id)sender{
- NSString*home=NSHomeDirectory();
- NSLog(@"%@",home);
- NSString*strDocument=[homestringByAppendingPathComponent:@"Documents/xml.plist"];
- NSArray*array=@[@"A",@"B",@"C"];
- [arraywriteToFile:strDocumentatomically:YES];
- }
②读取数据: @H_502_0@ @H_502_0@ 1.获得相应的plist文件的路径 @H_502_0@ 2.直接通过类相应的方法调用读取数据 @H_502_0@
copy