CycleScrollView.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // CycleScrollView.h
  3. // PagedScrollView
  4. //
  5. // Created by 陈政 on 14-1-23.
  6. // Copyright (c) 2014年 Apple Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface CycleScrollView : UIView
  10. @property (nonatomic , readonly) UIScrollView *scrollView;
  11. /**
  12. * 初始化
  13. *
  14. * @param frame frame
  15. * @param animationDuration 自动滚动的间隔时长。如果<=0,不自动滚动。
  16. *
  17. * @return instance
  18. */
  19. - (id)initWithFrame:(CGRect)frame animationDuration:(NSTimeInterval)animationDuration;
  20. //-(void) animationDuration:(NSTimeInterval)animationDuration;
  21. -(void) reset;
  22. -(void) addPage:(UIView*) page;
  23. @property (strong,nonatomic) NSMutableArray* arr_Pages;
  24. //@property int page_count;
  25. /**
  26. 数据源:获取总的page个数
  27. **/
  28. //@property (nonatomic , copy) NSInteger (^totalPagesCount)(void);
  29. /**
  30. 数据源:获取第pageIndex个位置的contentView
  31. **/
  32. //@property (nonatomic , copy) UIView *(^fetchContentViewAtIndex)(NSInteger pageIndex);
  33. /**
  34. 当点击的时候,执行的block
  35. **/
  36. @property (nonatomic , copy) void (^TapActionBlock)(NSInteger pageIndex);
  37. - (void)setTotalPagesCount;
  38. -(void) stopTimmer;
  39. @end