Skip to content

Latest commit

 

History

History
49 lines (42 loc) · 1.7 KB

README.md

File metadata and controls

49 lines (42 loc) · 1.7 KB

SSImageScroller

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

#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); }