Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Animated GIF Image as a splash screen in iphone

I have an animated GIF image and this has to be used as a Splash Screen. Could you please help me figure out how to develop an animated splash screen using the GIF?

like image 671
NISHAN gp Avatar asked Nov 30 '25 16:11

NISHAN gp


1 Answers

Use the builtin animation methods for UIImageView. You'll need to create an NSArray of UIImages. After that:

myImageView.animationImages = myArrayOfImages;
myImageView.animationRepeatCount = 0;   // forever
[myImageView startAnimating];

To do this with a GIF, you'd need to split the animated GIF into its individual images and then populate myArrayOfImages with one UIImage for each individual GIF image. UIImage supports PNG or JPEG representations.

[Edit] If you really must keep the animated GIF in tact, then create a UIWebView and load a URL to that GIF image.

like image 159
GoZoner Avatar answered Dec 02 '25 07:12

GoZoner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!