I understand that not all devices can encode the new heif format. I have an app which has access to heif images which have been encoded elsewhere and I want to save them to the photo library/camera roll on devices which cannot encode heif data (such as an iPhone 6). The image data is in an NSData object and was encoded on another iOS device.
What API do I need to use to do this?