CoreData (for iphone) storing images

后端 未结 4 685
旧时难觅i
旧时难觅i 2020-12-08 08:55

i wonder if its a wise choice to store images with core data into binary property

say i have a collection of movies and i want to save the image dvd cover into a pro

4条回答
  •  感情败类
    2020-12-08 09:24

    The best method is to store the path to the image in the managed object and then delete the file in the object's prepareForDeletion method.

提交回复
热议问题