iOS Image Scroller autoadaptive with customizable scroll indicator. It can use arrays of [UIImage imageNamed:@"nameofimage"] or NSURL array
#Installation 1 - Download test project 2 - Copying SSImageSlider.h and SSImageSlider.m into your new project 3 - Create new UIView in your UIViewController (you can use XIB or Storyboard) 4 - Assign SSImageSlider as class to your new UIView 5 - Select "selection color" in the side tab on Xib controller 6 - Add the delegation method below to your UIViewController 7 - Attach Delegate and Datasource to your Controller 8 - Add <SSImageSliderDelegate, SSImageSliderDataSource> to your Controller 9 - Build and run
#SSImagePager DataSource
-
(NSArray ) arrayWithImages:(SSImageSlider)pager { return @[ [UIImage imageNamed:@"testimage"], [NSURL URLWithString:@"https://ilbuongiorno.it/immagini-articoli/1278/french-bulldog-puppies-new-york-french-bulldog-black--24836-wallpaper-wallemon-pictures_e1460.jpg"], [UIImage imageNamed:@"testimage"] ]; }
-
(UIViewContentMode) contentModeForImage:(NSUInteger)image inPager:(SSImageSlider *)pager { return UIViewContentModeScaleAspectFill; }
-
(NSString *) captionForImageAtIndex:(NSUInteger)index inPager:(SSImageSlider *)pager { return @[ @"Test 1", @"Test 2", @"Test 3" ][index]; }
#SSImagePager Delegate
-
(void) imagePager:(SSImageSlider *)imagePager didScrollToIndex:(NSUInteger)index { NSLog(@"%s %lu", PRETTY_FUNCTION, (unsigned long)index); }
-
(void) imagePager:(SSImageSlider *)imagePager didSelectImageAtIndex:(NSUInteger)index { NSLog(@"%s %lu", PRETTY_FUNCTION, (unsigned long)index); }