iOS 数据持久化

2018-10-15  本文已影响2人  派大星的博客
KeyChain.png

1、KeyChain :Securely store small chunks of data on behalf of the user.
KeyChain Apple Documentation

2、UserDefaults :An interface to the user’s defaults database, where you store key-value pairs persistently across launches of your app.
UserDefaults Apple Documentation

3、NSKeyedArchiver : A coder that stores an object's data to an archive referenced by keys.
NSKeyedArchiver Apple Documentation

上一篇下一篇

猜你喜欢

热点阅读