1

While I have been working with iOS apps for some time now, I am totally new to core data. So, just have a simple question.

Can images be cached and stored in core data?

I could not find any sample app for caching images into core data. It would be of great help if someone can share me links for image caching in core data in case this is possible.

[P.S I know image caching. So, not looking for links or samples for only image caching. Please share info on image caching with core data]

Dipanjan Dutta
  • 85
  • 1
  • 10
  • I think this can already be found on stackoverflow : [Storing images in core data][1] [1]: http://stackoverflow.com/questions/4158286/storing-images-in-core-data?rq=1 – Tom Jun 05 '13 at 07:49
  • possible duplicate of [Core Data - Storing Images (iPhone)](http://stackoverflow.com/questions/2090028/core-data-storing-images-iphone) – taocp Jun 05 '13 at 15:13

2 Answers2

2

You can take a look at this article.

But IMO it's better to just store imageURLs in your Core Data database and cache them with setImageWithURL:placeholderImage: (AFNetworking awesomeness).

Dmitry Zhukov
  • 1,809
  • 2
  • 27
  • 35
-1

Check one of the below tutorials:

Tarek Hallak
  • 18,422
  • 7
  • 59
  • 68
  • You should avoid just linking without explanations, if the link goes up in smoke, its of no help – Tyler Jun 10 '15 at 15:35