How to avoid malloc while using CGImageDestinationFinalize

前端 未结 1 668
甜味超标
甜味超标 2021-01-22 03:13

I am trying to programmatically create GIF in iOS, using the following stack\'s question:

Create and and export an animated gif via iOS?

My code looks like this:

相关标签:
1条回答
  • 2021-01-22 03:37

    First of all, try debugging your app using Instruments. You probably will notice that the problem is caused by the method: Generatefromrgbimagewu

    I have been wondering whether the cause was in my threads implementation, but it turns out, that once you have that kind of error, you should focus on resizing the Image.

    Once the image had been resized, the code published above, will generate your own GIF.

    0 讨论(0)
提交回复
热议问题