UIImageJPEGRepresentation has been replaced by instance method UIImage.jpegData(compressionQuality:)

Replies

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.