I have an entity attribute of type NSData to store an image thumbnail in a Core Data model. In my view controller I can select an image from my iPhone 6 simulator photo library, shrink it to a thumbnail using a UIImage extension and pull it into a UIImageView on my storyboard. So far, so good.
I know I have to convert it to NSData to save it in Core Data, but no matter what I do I just can't seem to manage it. My TextFields are all being passed to Core Data and retrieved again, but not the ImageView. Could someone please assist with some example code? I'm still learning Swift, so please be gentle!!!