Save generated GIF to camera roll?

后端 未结 4 1999
一个人的身影
一个人的身影 2021-02-20 18:39

Thanks for reading. I\'ve created a GIF using methods from this question:

Create and and export an animated gif via iOS?

I\'m trying to use the only method that

4条回答
  •  失恋的感觉
    2021-02-20 19:02

    I found the issue was that I was unable to actually grab the GIF from the file. I switched from using CGImageDestinationCreateWithURL to CGImageDestinationCreateWithData and used a CFMutableDataRef to hold the Gif data. I don't know why, but that made saving to camera roll with writeImageDataToSavedPhotosAlbum work.

提交回复
热议问题