I am trying to save drafts using NSUserDefaults but I am not sure if it is the right place to save data not user's preferences in.
My application allows user to choose 1 or 2 images to upload and share. Users can save draft and come back to upload later. My current approach is to save the chosen UIImage to /Library directory and save the file path to NSUserDefaults.
The data structure is NSUserDefaults -> Draft NSDictionary -> key - NSArray. I have many drafts (just like email drafts). The Draft Dictionary contains a saved date string as a key and string file paths in NSArray. The saving process doesn't have any problems currently. But because in NSUserDefaults doc, they say:
The defaults system allows an application to customize its behavior to match a user’s preferences.to match a user’s preferences.
So, I don't know if my approach is good or not, any possible future problems with it?
Do you suggest me any simple solution that can do this well without having to code much. I know there is CoreData but I don't know much about it. Is it easy to learn and implement?
I don't know if this can affect some memory problem or not, but I expect that a user may save drafts less than 100.