Mohamed Emad Hegab
Mohamed Emad Hegab

Reputation: 2675

iphone local animated gif inside main bundle

i want to display an animated GIF i've made inside iphone main bundle in UIWebview i've tried

NSString *ImageFromApp = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"image.gif"];
// NSString *html = [NSString stringWithFormat:@"<html><body \"style=\"background:url(%@) no-repeat;\">gege</body></html>",ImageFromApp];

but it gets me nothing at all any idea here wil be very appreciate

Upvotes: 1

Views: 521

Answers (1)

Brad
Brad

Reputation: 11515

The iPhone does not support animated GIFs (outsde of the web browser).

Although, it is easy to take a bunch of images, and have the framework animate them.

It is detailed here in this article.

Upvotes: 2

Related Questions