views:

982

answers:

1

Hi,

how can I save a GIF on the iPhone? The SDK includes only UIImageJPEGRepresentation and UIImagePNGRepresentation but nothing for GIFs or other image formats, is there a way to convert a UIImage to a GIF and save it?

GM

+1  A: 

You can't without a third party GIF library. The question is why do you need it to be GIF? PNG provides all that you might need and it is well supported. If you are trying to do animation, look at UIImageView's -animationImages property.

Matt Long
I want so save an animation as animated GIF, PNG does not support animation.
GM