//
//  CarouseViewPlus.h
//  CarouseView
//
//  Created by yxhe on 16/9/13.
//  Copyright © 2016年 tashaxing. All rights reserved.
//

// ---- 一个无限循环的轮播图封装类（优化版） ---- //

#import <UIKit/UIKit.h>
#import "BannerAdObjectModel.h"
#import "UIImageView+WebCache.h"

// 定义block用于外部点击回调
typedef void (^TapCarouseViewBlock)(NSInteger pageIndex);

typedef void (^TapCarouseView2Block)(BannerAdObjectModel* model);

@interface CarouseViewPlus : UIView

// 填充分页并设置回调
- (void)setupSubviewPages:(NSArray *)pageViews withCallbackBlock:(TapCarouseViewBlock)block;

- (void)setup2SubviewPages:(NSArray *)pageViews withCallbackBlock:(TapCarouseView2Block)block;

@end
