// // ViewController.m // SmallPromotion // // Created by Robert Metcalfe on 30/06/13. // Copyright (c) 2013 Robert Metcalfe. All rights reserved. // #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. NSArray *images = [NSArray arrayWithObjects: [UIImage imageNamed:@"SmallPromotion1.jpg"], [UIImage imageNamed:@"SmallPromotion2.jpg"], [UIImage imageNamed:@"SmallPromotion3.jpg"], [UIImage imageNamed:@"SmallPromotion4.jpg"], [UIImage imageNamed:@"SmallPromotion5.jpg"], [UIImage imageNamed:@"SmallPromotion6.jpg"], [UIImage imageNamed:@"SmallPromotion7.jpg"], [UIImage imageNamed:@"SmallPromotion8.jpg"], nil]; UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 320, 200)]; imageView.animationImages = images; imageView.animationDuration = 20; imageView.animationRepeatCount = 0; // 0 = nonStop repeat [imageView startAnimating]; [self.view addSubview:imageView]; //[imageView release]; } - (void)viewDidUnload { [super viewDidUnload]; // Release any retained subviews of the main view. } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown); } @end