An images slideshow, based on UIImageView subclass.
name | type | description |
---|---|---|
images | NSMutableArray | it represents an array of images name or remote images url (eg. google images, panoramio etc.) that will be shown on the slideshow |
interval | int | timer interval of slideshow (default 5) |
delegate | id | class delegate (see L3SDKImagesSlideShowDelegate) |
isStarted | BOOL | returns YES if slideshow is working otherwise returns NO |
@protocol L3SDKImagesSlideShowDelegate <NSObject>
//it will be raised when an image will be loaded
- (void)L3SDKImagesSlideShow_NextImageAtIndex:(int)index withSender:(id) sender;
- (void)L3SDKImagesSlideShow_Touched;
@end
//load images array with names and links
self.slideShow.images=[[NSMutableArray alloc] initWithObjects:
@"image_1.jpg",
@"image_2.jpg",
@"image_3.jpg",
@"image_4.jpg",
@"image_5.jpg",
@"http://servername/images/image1.jpg",
@"http://servername/images/image2.jpg",
@"http://servername/images/image3.jpg",
nil];
//sets slideshow delegate
self.slideShow.delegate=self;
//sets slideshow time interval
self.slideShow.interval=3;
//start slideshow
[self.slideShow start];
<br/>
![ScreenShot](https://raw.github.com/alchimya/iOS-Images-Slideshow/master/screenshots/iOS-Images-Slideshow.gif)