Animated GIF Alternative for iOS

"The same day, animated GIFs were ubiquitous.

They were easy to use - just pop em, wherever you want an animated image.

I would like to display an animated image in an iOS application (for example, a graphic image that opens a letter from an envelope).

But I'm not sure how to do this.

Obviously, I don't want to use animated GIFs.

A video of some kind seems like this might be the preferred solution. But what about transparency? Also, what about the retina display?

Thank.

+5
source share
4 answers
+12

Flipboard GIF-, , Flipboard, Dropbox, Medium ..:

https://github.com/Flipboard/FLAnimatedImage

+2

, , , ImageIO.framework UIImageView.

0

UIWebView html- Bundle. GO TO File > New > Others > Empty >

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
     <title>QUALITY PLACEMENTS</title>

</head>
<body>
<div style="word-wrap: break-word !important; width: 300px;">
    <img width="100%" src="Surprice-0.gif"/>
   </div></body></html> 
    //IOS CODE 
     UIWebView* mywebview=[[UIWebView alloc]initWithFrame:CGRectMake(5, 50, 300, 300)];
            mywebview.scalesPageToFit = NO;
            mywebview.scrollView.hidden = NO;
            [mywebview setMultipleTouchEnabled:YES];
            NSURL* url=[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"greeting" ofType:@"html"]];
            [mywebview loadRequest:[NSURLRequest requestWithURL:url]];
0

All Articles