ios - Is Core data always necessary? -


i have developed ten apps ios. , haven't needed use core data! apps consistently based on receiving data servers. of apps have large feed lists, similar facebook , instagram.

however coredata large topic in ios development, , i'm thinking maybe i'm missing something? there no data need save, , if large file image or audio file, save disk, because believe core data not suitable large files.

in apps facebook or instagram, need there core data?

core data interesting when have lot of objects relationships , if don't want manipulate sqlite requests.

there no best , miracle way store data, depends on needs.

if manipulate data coming webservice , don't want store caching them (and access offline) can use objects created right after parsing.

maybe if want store preferences data (which no need secure) can use nsuserdefault.

if want store graph of data (maybe custom objects linked , stored on nsarray or nsdictionary) can implements nskeyedarchiver nscoding protocol.

this great way store data.

please go reed great article written matt thompson called nscoding / nskeyed​archiver.

he explains way better , make comparaison core data.

hope helped !


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -