Hi All
Show the animated/gif file in using cocoa in you Iphone application
Use this code
NSURL* firstUrl = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@myfile" ofType:@"gif"]];
UIImageView * firstAnimation = [AnimatedGif getAnimationForGifAtUrl: firstUrl];
NSURL * secondUrl = [NSURL URLWithString:@url of animated image];
UIImageView * secondAnimation = [AnimatedGif getAnimationForGifAtUrl: secondUrl];
[theFirstAnimatedGif addSubview:firstAnimation];
[theSecondAnimatedGif addSubview:secondAnimation];
Use the code and give your comments
Thanks
Amit Battan
gud job !!!
ReplyDelete