admin
2023-04-21 0b3a4aaf99ea251bc8e27b96115288f0988fcffe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
//  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