// // CycleScrollView.h // PagedScrollView // // Created by 陈政 on 14-1-23. // Copyright (c) 2014年 Apple Inc. All rights reserved. // #import @interface CycleScrollView : UIView @property (nonatomic , readonly) UIScrollView *scrollView; /** * 初始化 * * @param frame frame * @param animationDuration 自动滚动的间隔时长。如果<=0,不自动滚动。 * * @return instance */ - (id)initWithFrame:(CGRect)frame animationDuration:(NSTimeInterval)animationDuration; //-(void) animationDuration:(NSTimeInterval)animationDuration; -(void) reset; -(void) addPage:(UIView*) page; @property (strong,nonatomic) NSMutableArray* arr_Pages; //@property int page_count; /** 数据源:获取总的page个数 **/ //@property (nonatomic , copy) NSInteger (^totalPagesCount)(void); /** 数据源:获取第pageIndex个位置的contentView **/ //@property (nonatomic , copy) UIView *(^fetchContentViewAtIndex)(NSInteger pageIndex); /** 当点击的时候,执行的block **/ @property (nonatomic , copy) void (^TapActionBlock)(NSInteger pageIndex); - (void)setTotalPagesCount; -(void) stopTimmer; @end