Write UIImage along with metadata (EXIF, GPS, TIFF) in iPhone's Photo library

后端 未结 8 1794
情歌与酒
情歌与酒 2020-11-29 05:12

I am developing a project, where the requirements are: - User will open the camera through the application - Upon capturing an Image, some data will be appended to the captu

8条回答
  •  执念已碎
    2020-11-29 05:29

    The function: UIImageWriteToSavePhotosAlbum only writes the image data.

    You need to read up on the ALAssetsLibrary

    The method you ultimately want to call is:

     ALAssetsLibrary *library = [[ALAssetsLibrary alloc]
     [library writeImageToSavedPhotosAlbum:metadata:completionBlock];
    

提交回复
热议问题