I'm creating a app on a iOS device and it will have a animation on the background but basically i would like to no how many images you can upload to one animation heres the code i have set up.
.h
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController {
IBOutlet UIImageView *animation;
}
@end
.m
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
-(void)viewDidLoad {
animation.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"animatedbg1.gif"],
[UIImage imageNamed:@"animatedbg2.gif"],
[UIImage imageNamed:@"animatedbg3.gif"],
[UIImage imageNamed:@"animatedbg4.gif"],
[UIImage imageNamed:@"animatedbg5.gif"],
[UIImage imageNamed:@"animatedbg6.gif"],
[UIImage imageNamed:@"animatedbg7.gif"],
[UIImage imageNamed:@"animatedbg8.gif"],
[UIImage imageNamed:@"animatedbg9.gif"],nil],
[animation setAnimationRepeatCount:0];
animation.animationDuration = 2;
[animation startAnimating];
}
At the moment I have 9 images but for my animation I will have 155 images so will that still work :) If not do you guys know a better route I could take?