简体   繁体   中英

NSuserDefault or Sqlite

I just wanna clear some concept about NSuser Default and Sqlite. plz suggest me, when to use NSUserdefault and when to use sqlite.

can i use NSuserdefault for some large data??

when you want to store large amount of data with some relationship, go for sqlite if you want to store less value go for NSUserDefault.Sqlite occupies some memory so use it only you really need to save complex datas.

All the best.

Personally, I use NSUserDefault when I want to stock user configuration (if you have a config view). It's easy, fast and a really good way to stock some little things about your app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM