search

Home  >  Q&A  >  body text

objective-c - plist能保存模型数组吗?

channelList 是一个保存模型的数组.

[_channelList writeToFile:filePath atomically:YES];
    
NSArray *returnArray = [NSArray arrayWithContentsOfFile:filePath];

但是我从 plist 取值时取不到.

PHP中文网PHP中文网2757 days ago424

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-02 09:27:20

    Model objects cannot be written to File directly and need to be serialized first before they can be saved

    reply
    0
  • Cancelreply