Save NSDictionary to plist

后端 未结 3 1972
梦如初夏
梦如初夏 2020-11-27 17:30

I am using the code found in this post: Mulitple Arrays From Plist, with the same plist formatting.

This works successfully, however I do not know how to save the cr

3条回答
  •  自闭症患者
    2020-11-27 17:56

    Here's the simplest way:

    NSDictionary* dict = ...;
    [dict writeToFile:@"..." atomically:YES];
    

    See the documentation for -writeToFile:atomically:.

提交回复
热议问题