'Core data with images
I'm new to iOS app development. My first question is it possible to create a core data entity that will have both text and images included? so attributes will be: Name, Price, Detail and Image. if so, how can I preload the data into the database?
Solution 1:[1]
you have to change image into (pngData) them save it and then when reading the image change (pngData) to image
and in core Data model make the image attribute of type binary Data
that source will help https://blog.devgenius.io/saving-images-in-coredata-8739690d0520
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | belal medhat |
