新UI马甲包

FSLoopScrollView.h 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // FSLoopScrollView.h
  3. // SFLoopScrollview
  4. //
  5. // Created by huim on 2017/3/6.
  6. // Copyright © 2017年 shunFSKi. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface FSLoopScrollView : UIView
  10. /**
  11. 提供给外部的动态属性
  12. */
  13. @property (nonatomic, copy) NSArray *imgResourceArr;//图片资源数组(网络,本地,图片)
  14. @property (nonatomic, assign) NSTimeInterval timeinterval;//滚动间隔时间,默认2s
  15. @property (nonatomic, assign, readonly) NSInteger currentIndex;//当前的index
  16. @property (nonatomic, copy) void (^tapClickBlock)(FSLoopScrollView *loopView);//触摸事件
  17. /**
  18. 仅文本轮播调用
  19. */
  20. @property (nonatomic, strong) UIColor *textColor;//默认黑色
  21. @property (nonatomic, strong) UIFont *textFont;//默认15
  22. @property (nonatomic, copy) NSArray *titlesArr;//文本数组
  23. @property (nonatomic, copy) NSArray *titleImgArr;//文本图片数组
  24. /**
  25. 纯图片轮播图
  26. @param frame 初始化frame
  27. @param isHorizontal 是否横向
  28. @return 图片轮播
  29. */
  30. + (instancetype)loopImageViewWithFrame:(CGRect)frame isHorizontal:(BOOL)isHorizontal;
  31. /**
  32. 带图片头文本轮播图
  33. @param frame 初始化frame
  34. @param isTitleView 是否为文本视图
  35. @param titleImgArr 头图片数组(可以置空)
  36. @return 文本轮播
  37. */
  38. + (instancetype)loopTitleViewWithFrame:(CGRect)frame isTitleView:(BOOL)isTitleView titleImgArr:(NSArray *)titleImgArr;
  39. @end