Objective C ImageSlideshow


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.