ios - How to store MPMediaLibrary lastModifiedDate -
i'm writing app based on mpmedialibrary
. i'm checking, whether lastmodifieddate
changed , modify info correspondingly.
what i'm wondering is, how should store date? i'm using coredata
rest of data. create sense, store there. on other hand, i'd need create whole new entity. store in nsuserdefaults
.
which 1 should used?
using core info seems heavy, nsuserdefaults
best bet.
nsuserdefaults *defaults = [nsuserdefaults standarduserdefaults]; [defaults setobject:[[mpmedialibrary defaultmedialibrary] lastmodifieddate] forkey:@"lastmodifieddate"];
ios objective-c nsuserdefaults nsobject
No comments:
Post a Comment