Return to Snippet

Revision: 38935
at January 10, 2011 21:30 by magickaito


Initial Code
//header file
#import <UIKit/UIKit.h>

@interface HelloWorldIpadViewController : UIViewController {

	IBOutlet UIImageView *imageView;
	
}

@property (nonatomic, retain) IBOutlet UIImageView *imageView;

-(IBAction) showPopup;

@end


//m file
@synthesize imageView;

- (void)viewDidLoad {
    [super viewDidLoad];
	
imageView.animationImages = [NSArray arrayWithObjects:
		[UIImage imageNamed:@"IMG_0002.PNG"],
		[UIImage imageNamed:@"IMG_0003.PNG"],
		[UIImage imageNamed:@"IMG_0004.PNG"], nil];
imageView.animationDuration = 10;
imageView.animationRepeatCount = 0;
[imageView startAnimating];
}

Initial URL

                                

Initial Description

                                

Initial Title
Objective C ImageSlideshow

Initial Tags
image

Initial Language
Objective C