Convert animated UIImage to NSData

I use the animatedImageWithImages() class method for UIImage to create an animated image, but how do I convert it to an NSData object? I tried using UIImagePNGRepresenation() , but unfortunately it does not work with animated UIImage s. Any idea?

+6
source share

Source: https://habr.com/ru/post/983924/


All Articles