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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With