I'm picking an image from gallery and converting it to NSData
. Later on I'm storing it in CoreData and retrieving later. But if I pick 2 images from the gallery, I want to store the `NSData info of both of them to an array and store that array to CoreData. But how an array can be saved to CoreData that I'm not able to figure out. Did go through other SO posts dealing with similar issue but they weren't of much help.
Also please note..I cannot store the array to Userdefaults
or Document directory
in this scenario because there are other data associated with the image like name,qty etc. and they are all stored in coredata and they should later be displayed in tableview. If just the images are stored using some other method and the other details stored using core-data, there won't be proper data populated in the tableview..