开发者

How write + NSDictionary in file

开发者 https://www.devze.com 2023-01-20 04:57 出处:网络
NSMutableDictionary *dicta = [[NSMutabl开发者_如何学GoeDictionary alloc]init]; [dicta writeToFile:[docDirectory stringByAppendingPathComponent:foo] atomically:YES];
 NSMutableDictionary *dicta = [[NSMutabl开发者_如何学GoeDictionary alloc]  init];

 [dicta writeToFile:[docDirectory stringByAppendingPathComponent:foo] atomically:YES];

I know only how write

W+ ?


If you're talking about appending to a file. Usually, you would modify the NSMutableDictionary using code and then save the entire Dictionary to disk using the code you posted above.

0

精彩评论

暂无评论...
验证码 换一张
取 消