Posted By

magickaito on 01/10/11


Tagged

image slideshow


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

terababy
Tintenklecks
cnathan


Objective C ImageSlideshow


 / Published in: Objective C
 

  1. //header file
  2. #import <UIKit/UIKit.h>
  3.  
  4. @interface HelloWorldIpadViewController : UIViewController {
  5.  
  6. IBOutlet UIImageView *imageView;
  7.  
  8. }
  9.  
  10. @property (nonatomic, retain) IBOutlet UIImageView *imageView;
  11.  
  12. -(IBAction) showPopup;
  13.  
  14. @end
  15.  
  16.  
  17. //m file
  18. @synthesize imageView;
  19.  
  20. - (void)viewDidLoad {
  21. [super viewDidLoad];
  22.  
  23. imageView.animationImages = [NSArray arrayWithObjects:
  24. [UIImage imageNamed:@"IMG_0002.PNG"],
  25. [UIImage imageNamed:@"IMG_0003.PNG"],
  26. [UIImage imageNamed:@"IMG_0004.PNG"], nil];
  27. imageView.animationDuration = 10;
  28. imageView.animationRepeatCount = 0;
  29. [imageView startAnimating];
  30. }

Report this snippet  

You need to login to post a comment.