/ Published in: Objective C

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// .h #import <UIKit/UIKit.h> @interface SimpleViewController : UIViewController { IBOutlet UIImageView *imageView; } @property (nonatomic, retain) IBOutlet UIImageView *imageView; @end // .m #import "SimpleViewController.h" @implementation SimpleViewController @synthesize imageView; // Implement viewDidLoad to do additional setup after loading the view, typically from a nib. - (void)viewDidLoad { [super viewDidLoad]; UIImage *image1 = [UIImage imageNamed:@"WELCOME.PNG"]; UIImage *image2 = [UIImage imageNamed:@"SLIDER.PNG"]; imageView.animationImages = images; imageView.animationDuration = 10; imageView.animationRepeatCount = 0; [imageView startAnimating]; }
Comments
