UIImageJPEGRepresentation has been replaced by instance method UIImage.jpegData(compressionQuality:)
when I replace I get error again
Value of type 'UIImageView' has no member 'jpgData'
UIImageJPEGRepresentation has been replaced by instance method UIImage.jpegData(compressionQuality:)
when I replace I get error again
Value of type 'UIImageView' has no member 'jpgData'
Please show your code with all relevant parts. And check if you tried Clean Build Folder.
Also the suggested method is defined on `UIImage`, not `UIImageView`, and the method name is `jpegData(compressionQuality:)` not `jpgData`.
method applies to UIImage, not UIImageView.: so you should apply to theImageView.image and not theImageView.