TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jun 2015 |
Maintained by MC Lee.
MCLScrollViewSlider is a delightful autoscrollview library for iOS.It's built on top of the UICollectionView.
Choose MCLScrollViewSlider for your next project, or migrate over your existing projects—you'll be happy you did!
platform :ios, '7.0'
pod "MCLScrollViewSlider"
MCLScrollViewSlider *scrollView = [MCLScrollViewSlider scrollViewSliderWithFrame:CGRectMake(0, 60, w, 180) images:images]; [self.view addSubview:scrollView];
MCLScrollViewSlider *scrollView = [MCLScrollViewSlider scrollViewSliderWithFrame:CGRectMake(0, 280, w, 180) imageURLs:imagesURL placeholderImage:[UIImage imageNamed:@"placeholder"]]; [self.view addSubview:scrollView];
NSArray *labelTexts = @[@"1", @"2"]; scrollView.labelTexts = labelTexts;
scrollView.autoScrollTimeInterval = 2.0;
[scrollView didSelectItemWithBlock:^(NSInteger clickedIndex) { NSLog(@"%d",(int)clickedIndex); }];
scrollView.pageControlAliment = MCLScrollViewSliderPageContolAlimentCenter; (or MCLScrollViewSliderPageContolAlimentLeft)
scrollView.pageControlIndicatorTintColor = [UIColor redColor];
scrollView.pageControlCurrentIndicatorTintColor = [UIColor redColor];
scrollView.labelTextColor = [UIColor redColor];
scrollView.labelBackgroundColor = [UIColor redColor];
scrollView.labelTextFont = [UIFont systemFontOfSize:14];
scrollView.labelHeight = 40;
Email: [email protected]
MCLee
MCLScrollViewSlider is available under the MIT license. See the LICENSE file for more info.