AutoScView.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // AutoScView.h
  3. // 丰生活
  4. //
  5. // Created by 隋林栋 on 16/1/25.
  6. // Copyright © 2016年 Sl. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface AutoScView : UIView
  10. @property (nonatomic, assign) CGFloat pageControlToBottom;//page control to bottom,default 0
  11. @property (nonatomic, strong) UIColor *pageCurrentColor;//page control current color
  12. @property (nonatomic, strong) UIColor *pageDefaultColor;//page control defalult color
  13. @property (nonatomic, assign) BOOL isClickValid;//is can click show big image
  14. @property (nonatomic, assign) BOOL isShowProductImageStyle;//show product image style
  15. @property (nonatomic, assign) BOOL isShowNum;//show product image style
  16. @property (nonatomic, strong) NSMutableArray * aryImage;
  17. @property (nonatomic, strong) NSMutableArray * aryImageModel;
  18. @property int numNow;
  19. //定时器
  20. @property (nonatomic, strong) NSTimer * timer;
  21. @property (nonatomic) int numTime;
  22. @property (strong, nonatomic) void (^blockNum)(double allNum,double num);
  23. @property (nonatomic, strong) void (^blockModel)(ModelBanner *model);
  24. @property (nonatomic, strong) void (^blockCilck)(NSString *model);
  25. - (instancetype)initWithFrame:(CGRect)frame image:(NSArray *)aryImage;
  26. - (void)resetWithImageAry:(NSArray *)aryImage;
  27. //开启定时器
  28. - (void)timerStart;
  29. //关闭定时器
  30. - (void)timerStop;
  31. @end