I'm sort of looking for advise how to structure an iOS core data app that uses pre-filled data. The problem: Users are presented with a pre-filled (photos) sqlite database (easy) but they can modify the default data (replace/delete photos). I want to keep the default photos on the main bundle without copying anything to the app directory but obviously I can not write to the main bundle anything if user decides to edit/replace the photos.
I do not wish to keep the photos inside the sqlite neither I want to copy the default photos to the app directory (as Apple doesn't like to add anything that the user didn't add to the app directory). The Question: How can I call the default photos from the main bundle but call the edited/replaced photos from the app directory?
any ideas would be much appreciated...
something like:
if (userEditedPhoto) {
imageView.image = //appDirectory:userPhoto
}
else {
imageView.image = //mainBundle:defaultPhoto
}
thanks