两折卖----返利app-----返利圈

MLMSegmentScroll.h 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. //
  2. // MLMSegmentScroll.h
  3. // MLMSegmentPage
  4. //
  5. // Created by my on 2017/2/6.
  6. // Copyright © 2017年 my. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. //添加子视图的时机
  10. typedef enum : NSUInteger {
  11. SegmentAddNormal,//滑动或者动画结束
  12. SegmentAddScale//根据设置滑动百分比添加0-1
  13. } SegmentAddTiming;
  14. @protocol MLMSegmentScrollDelegate <NSObject>
  15. ///滑动结束
  16. - (void)scrollEndIndex:(NSInteger)index;
  17. ///动画结束
  18. - (void)animationEndIndex:(NSInteger)index;
  19. ///偏移的百分比
  20. - (void)scrollOffsetScale:(CGFloat)scale;
  21. @property UIImage *aVrRL;
  22. @property UIEdgeInsets *ad95agyG;
  23. @property UICollectionView *aCuqaF;
  24. @property UIControl *aKjOceq;
  25. @property UIVisualEffectView *a5W0oq;
  26. @property UIImage *agItCp;
  27. @property UIView *aVaucx8Q;
  28. @property UIControl *aAmFbv2;
  29. @property UIFontWeight *aoKL6x03C;
  30. @property UIInputView *abDpxP7uRA;
  31. @property UISearchBar *aMw52WlGiE;
  32. @property UIRegion *aHh7ePw4;
  33. @property UICollectionView *augercfWCY;
  34. @end
  35. @interface MLMSegmentScroll : UIScrollView
  36. ///第一次进入是否加载,YES加载countLimit个页面,默认 - NO
  37. @property (nonatomic, assign) BOOL loadAll;
  38. ///缓存页面数目,默认 - all
  39. @property (nonatomic, assign) NSInteger countLimit;
  40. ///默认显示开始的位置,默认 - 1
  41. @property (nonatomic, assign) NSInteger showIndex;
  42. ///delegate
  43. @property (nonatomic, weak) id<MLMSegmentScrollDelegate> segDelegate;
  44. ///blcok
  45. @property (nonatomic, copy) void(^scrollEnd)(NSInteger);
  46. @property (nonatomic, copy) void(^animationEnd)(NSInteger);
  47. @property (nonatomic, copy) void(^offsetScale)(CGFloat);
  48. @property (nonatomic, copy) void(^showingIndex)(NSInteger);
  49. ///添加时机,默认动画或者滑动结束添加
  50. @property (nonatomic, assign) SegmentAddTiming addTiming;
  51. ///SegmentAddScale 时使用
  52. @property (nonatomic, assign) CGFloat addScale;
  53. ///给一些vc设置属性,在创建的时候,在viewController或view传入的是类名的时候使用
  54. @property (nonatomic, copy) void(^initSource)(id vcOrview, NSInteger index);
  55. - (instancetype)initWithFrame:(CGRect)frame vcOrViews:(NSArray *)sources;
  56. - (void)changeSource:(NSArray *)sources;
  57. /**
  58. * 创建之后,初始化
  59. */
  60. - (void)createView;
  61. - (NSInteger)currentIndex;
  62. - (id)currentVcOrView;
  63. @property UIImage *aVrRL;
  64. @property UIEdgeInsets *ad95agyG;
  65. @property UICollectionView *aCuqaF;
  66. @property UIControl *aKjOceq;
  67. @property UIVisualEffectView *a5W0oq;
  68. @property UIImage *agItCp;
  69. @property UIView *aVaucx8Q;
  70. @property UIControl *aAmFbv2;
  71. @property UIFontWeight *aoKL6x03C;
  72. @property UIInputView *abDpxP7uRA;
  73. @property UISearchBar *aMw52WlGiE;
  74. @property UIRegion *aHh7ePw4;
  75. @property UICollectionView *augercfWCY;
  76. @end