Question

I have an app that has hundreds of words with 3/4 images for each word. I have 2 versions of each word one for iOS 3 and one for retina display. I wish to save the images as data and connect them to the appropriate word so it will be easy to pull them later.

my question is - how do i get the suitable size ? its works great with the @2x wjen you get it from the app file system, but hoe does it supposed to work when i get it from data ?

thanks shani

Was it helpful?

Solution

Storing images in CoreData is a rather ill-advised idea. It will significantly bloat the size of the CoreData database and cause memory issues when you have faulted-in objects containing images. Instead you should write the images out to the filesystem and store the image path in CoreData.

OTHER TIPS

It's not quite unusual that you save the images with Core Data. Take a look at the sample iPhoneCoreDataRecipes to see how Apple stores the images in Core Data as Transformable Type.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top