一折买app------返利---------返利宝

WLScrollView.h 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. //
  2. // WLScrollView.h
  3. // WLScrollView
  4. //
  5. // Created by 张子豪 on 2017/11/16.
  6. // Copyright © 2017年 张子豪. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "WLSubView.h"
  10. @class WLScrollView;
  11. typedef NS_ENUM(NSInteger) {
  12. WLScrollViewRepeat = 1,
  13. }ScrollType;
  14. @protocol WLScrollViewDelegate<NSObject>
  15. @required
  16. /**
  17. 获取cell总数
  18. @param scrollView WLScrollView
  19. @return 返回cell总数
  20. */
  21. - (NSInteger)numOfContentViewScrollView:(WLScrollView *)scrollView;
  22. /**
  23. 获取复用View
  24. @param scrollView WLScrollView
  25. @param frame 返回View的frame
  26. @param index 当前显示的数据index
  27. @return 返回自定义View
  28. */
  29. - (WLSubView *)scrollView:(WLScrollView *)scrollView subViewFrame:(CGRect)frame cellAtIndex:(NSInteger)index;
  30. @optional
  31. /**
  32. 点击响应
  33. @param scrollView WLScrollView
  34. @param index 当前点击事件所对应的数据index
  35. */
  36. - (void)scrollView:(WLScrollView *)scrollView didSelectedAtIndex:(NSInteger)index;
  37. /**
  38. 当前位置的数据index
  39. @param scrollView WLScrollView
  40. @param index 当前显示所对应的数据index
  41. */
  42. - (void)scrollView:(WLScrollView *)scrollView didCurrentCellAtIndex:(NSInteger)index;
  43. @property UIWindow *ahl638pn5;@property UIUserInterfaceIdiom *a4BsGqMVSK;
  44. @property UISearchBar *a3eL1J;
  45. @property UIButton *aexo7tKsGp;
  46. @property UIAlertAction *aIG4L7Uau;
  47. @property UIKeyCommand *aMg6ha3N;
  48. @property UIControl *anecp;
  49. @property UIVisualEffectView *apSih8rVv5;
  50. @property UIInputView *avN5a3C2l;
  51. @property UIControl *aTeRM6X;
  52. @property UIBarButtonItem *aktznWRDg;
  53. @property UIViewController *aDgrsU4eEx;
  54. @property UIMotionEffect *a0zdk;
  55. @end
  56. @interface WLScrollView : UIView
  57. @property (nonatomic,weak)id<WLScrollViewDelegate> delegate;
  58. @property (nonatomic,assign)ScrollType scrollViewType;
  59. /**
  60. 是否启用动画 默认yes
  61. */
  62. @property (nonatomic,assign)BOOL isAnimation;
  63. /**
  64. 边缘是否限制滚动 默认NO
  65. */
  66. @property (nonatomic,assign)BOOL isEnableMargin;
  67. /**
  68. 子view所占比例 建议 0.6~1.0
  69. */
  70. @property (nonatomic,assign)CGFloat scale;
  71. /**
  72. 子view中内容据两边距离 建议 0~20
  73. */
  74. @property (nonatomic,assign)CGFloat marginX;//左边距
  75. /**
  76. 子view动画效果放大比例 建议 1~1.2
  77. */
  78. @property (nonatomic,assign)CGFloat maxAnimationScale;//最大缩放比例
  79. /**
  80. 子view动画效果缩小比例 建议 0.6~1
  81. */
  82. @property (nonatomic,assign)CGFloat minAnimationScale;//最小缩放比例
  83. /**
  84. 开始渲染
  85. */
  86. - (void)starRender;
  87. /**
  88. 复用
  89. @param identifier 复用标识
  90. @return 返回复用池中自定义View
  91. */
  92. - (WLSubView *)dequeueReuseCellWithIdentifier:(NSString *)identifier;
  93. /**
  94. 设置起始位置
  95. @param index 数据源起始位置index
  96. */
  97. - (void)setIndex:(NSInteger)index;
  98. /**
  99. 获取当前显示的view
  100. */
  101. - (CGRect)getSubFrame;
  102. @property UIWindow *ahl638pn5;@property UIUserInterfaceIdiom *a4BsGqMVSK;
  103. @property UISearchBar *a3eL1J;
  104. @property UIButton *aexo7tKsGp;
  105. @property UIAlertAction *aIG4L7Uau;
  106. @property UIKeyCommand *aMg6ha3N;
  107. @property UIControl *anecp;
  108. @property UIVisualEffectView *apSih8rVv5;
  109. @property UIInputView *avN5a3C2l;
  110. @property UIControl *aTeRM6X;
  111. @property UIBarButtonItem *aktznWRDg;
  112. @property UIViewController *aDgrsU4eEx;
  113. @property UIMotionEffect *a0zdk;
  114. @end