How to animate the images from web service. I got the code to animate the images from bundle.How to load the images from the url an array
That code is attached below
UIImageView* animatedImageView = [[UIImageView alloc] initWithFrame:self.view.bounds];
animatedImageView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"image1.gif"],
[UIImage imageNamed:@"image2.gif"],
[UIImage imageNamed:@"image3.gif"],
[UIImage imageNamed:@"image4.gif"], nil];
animatedImageView.animationDuration = 1.0f;
animatedImageView.animationRepeatCount = 0;
[animatedImageView startAnimating];
[self.view addSubview: animatedImageView];
Swift
Assuming that imageView is added via storyboard
Intialize array:
Add Code to animate on button action or as per required
Stop Animation
OR
To download images from webservice ;
likely download all images from web service and create an array like
and use with little modification