Posts

Post not yet marked as solved
1 Replies
0 Views
Looking at my own entry here makes me wonder... there seem to be 3 possible error points 1) Is this the right way to get the data representation of an image? let image = UIImage(named: "BartSimpson"); let imagedata = image?.jpegData(compressionQuality: 1) 2) is this the right way to pass the data to a function?     = Attribute.createPhotoAttributeFor(item: item,                                                   imageData: imagedata!) where class func createPhotoAttributeFor(item: Item, imageData: Data) -> Attribute { 3) is this the right way to reference the data? attribute.imageD = imageData            // attribute value