//
|
// BSKImagesPageView.h
|
// Shopping
|
//
|
// Created by aaaa on 2016/11/16.
|
// Copyright © 2016年 YouMeiYiKeJi. All rights reserved.
|
//
|
|
#import <UIKit/UIKit.h>
|
//#import <YYKit.h>
|
|
@class BSKImagesPageView;
|
@protocol BSKImagesPageViewViewDelegate <NSObject>
|
|
@optional
|
-(void)BSKImagesPageView:(BSKImagesPageView *)autoPlayScrollView onClickImageView:(UIImageView*)imageView atIndex:(NSInteger)index;
|
|
@end
|
|
@interface BSKImagesPageView : UIView
|
//被展示的图片们,如果是网络图片,则images为图片URL字符串数组,如果不是,则image为UIImage数组或图片的资源名称
|
@property (nonatomic, strong) NSArray * images;
|
@property (nonatomic, assign) BOOL canClickWhenScroll;//滚动时是否可以点击。默认为YES
|
@property (nonatomic, assign) NSInteger timerTimeInterval;//轮播的间隔,为0则不自动轮播
|
@property (assign, nonatomic) BOOL showPageControl;//是否显示分页控制器
|
@property (nonatomic, weak) id <BSKImagesPageViewViewDelegate> delegate;
|
@property (nonatomic, strong) UIPageControl * pageControl;
|
@property (assign, nonatomic) CGSize imageSize;
|
|
-(void)scrollToIndex:(NSInteger)index;
|
|
//-(YYAnimatedImageView * )curentImageView;
|
|
/**
|
初始化图片轮播视图
|
|
@param frame 视图的尺寸和位置
|
@param images 要展示的图片们,如果是网络图片,则images为图片URL字符串数组,如果不是,则image为UIImage数组
|
|
@return 成功则返回视图对象,失败返回nil
|
*/
|
- (instancetype)initWithFrame:(CGRect)frame imageNames:(NSArray *)images;
|
|
/**
|
初始化图片轮播视图,如果不指定frame则以数组第一张图的大小为默认大小,如果数组为空则默认款200高120。默认位置为x=0,y=0;
|
|
@param images 要展示的图片们,如果是网络图片,则images为图片URL字符串数组,如果不是,则image为UIImage数组
|
|
@return 成功则返回视图对象,失败返回nil
|
*/
|
-(instancetype)initWithImages:(NSArray *)images;
|
|
-(void)nextPage;
|
-(void)lastPage;
|
|
@end
|