Best way to save data to iOS?

后端 未结 3 2079
南方客
南方客 2021-02-09 08:07

In my application (iOS 5) I want to save data - I want to save debts. So its:

  • plus or minus money
  • the amount of money
  • and the name who has the de
3条回答
  •  难免孤独
    2021-02-09 08:49

    Good and easy way is to create your own objects and serialize them using NSCodying and NSCopying

    https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Protocols/NSCopying_Protocol/Reference/Reference.html

    https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html

提交回复
热议问题