This library provides a carousel scrollview.
It provides:
- Fetch image from Net.
- Auto run carousel.
- Customization dot image.
- Customization progress color.
- Support Autolayout.
- Support jpg/png/gif.
###Properties###
//Dot property
@property (nonatomic) UIImage *dotImage;
@property (nonatomic) UIImage *currentDotImage;
@property (nonatomic) CGFloat dotHeight;
//Carousel setting
@property (nonatomic, assign) BOOL autoScroll;
@property (nonatomic) CGFloat autoScrollTimeInterval;
//Carousel image data source
@property (nonatomic, strong) NSArray *dataSource;
@property (nonatomic, strong) NSArray *circleColor;
###How to set data source?
adView.dataSource = @[@"https://..../a.jpg",@"https://.../b.jpg",@"http://.../c.gif"];
###How to set progerss color foreach imageView? It must be set up before dataSource.
adView.circleColor = @[[UIColor blueColor],[UIColor redColor],[UIColor greenColor]];
###It provide delegate:
@protocol FLADPageViewDelegate <NSObject>
@optional
-(void)didTapPageViewAtIndex: (NSInteger)index;
@end
##Screen shot
To run the example project, clone the repo, and run pod install
from the Example directory first.
FLADPageView is available through CocoaPods. To install it, simply add the following line to your Podfile.
###Podfile
platform :ios, '8.0'
target 'TargetName' do
pod 'FLADPageView'
end
Then, run the following command:
pod install
##Requirements
Minimum iOS Target 8.0
##Dependency
##Animation Inspire
##License
FLADPageView is available under the MIT license. See the LICENSE file for more info.