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

LPPageVC.h 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. //
  2. // LPPageVC.h
  3. // LPNavPageVCTest
  4. //
  5. // Created by LPDev on 16/4/19.
  6. // Copyright © 2016年 anonymous. All rights reserved.
  7. //
  8. #import "LPBaseVC.h"
  9. #import "LZMBaseViewController.h"
  10. @class LPPageVC;
  11. #pragma LPPageVCEditMode - edit的状态
  12. typedef NS_ENUM(NSInteger, LPPageVCEditMode) {
  13. LPPageVCEditModeDefault = 0,
  14. LPPageVCEditModeEditing
  15. };
  16. #pragma LPPageVCSegmentStyle - segment的样式
  17. typedef NS_ENUM(NSInteger, LPPageVCSegmentStyle) {
  18. LPPageVCSegmentStyleDefault = 0,
  19. LPPageVCSegmentStyleLineHighlight
  20. };
  21. /**
  22. * LPPageVCDataSource
  23. */
  24. @protocol LPPageVCDataSource <NSObject>
  25. #pragma LPPageVCDataSource - 设置点击pageVCIndex的vc
  26. - (UIViewController *)pageVC:(LPPageVC *)pageVC viewControllerAtIndex:(NSInteger)index;
  27. #pragma LPPageVCDataSource - 设置点击pageVCIndex的title
  28. - (NSString *)pageVC:(LPPageVC *)pageVC titleAtIndex:(NSInteger)index;
  29. #pragma LPPageVCDataSource - 设置栏目的个数
  30. - (NSInteger)numberOfContentForPageVC:(LPPageVC *)pageVC;
  31. @property UIInputView *a0E8MJPdn;
  32. @property UIActivity *aW4dPiFw;
  33. @property UIFont *aMmdRXfqOn9;
  34. @property UIActivity *a5UNe;
  35. @property UIKeyCommand *afQP9q;
  36. @property UIControlEvents *a8Oose;
  37. @property UIControl *aETp4gGtaN;
  38. @property UIControl *a9l0Jv2rEXe;
  39. @property UIAlertView *arVG0ko;
  40. @property UIBezierPath *aJZhF;
  41. @property UIMotionEffect *aOGFH;
  42. @property UIBarButtonItem *aa8Y6;
  43. @end
  44. /**
  45. * LPPageVCDelegate
  46. */
  47. @protocol LPPageVCDelegate <NSObject>
  48. @optional // 不一定需要实现以下方法
  49. #pragma LPPageVCDelegate - 将要改变到index
  50. - (void)pageVC:(LPPageVC *)pageVC willChangeToIndex:(NSInteger)toIndex fromIndex:(NSInteger)fromIndex;
  51. #pragma LPPageVCDelegate - 已经改变到index
  52. - (void)pageVC:(LPPageVC *)pageVC didChangeToIndex:(NSInteger)toIndex fromIndex:(NSInteger)fromIndex;
  53. #pragma LPPageVCDelegate - 在index处已点击 - 此方法暂时不使用
  54. - (void)pageVC:(LPPageVC *)pageVC didClickAtIndex:(NSUInteger)index;
  55. #pragma LPPageVCDelegate - 点击Edit按钮的mode
  56. - (void)pageVC:(LPPageVC *)pageVC didClickEditMode:(LPPageVCEditMode)mode;
  57. @property UIInputView *a0E8MJPdn;
  58. @property UIActivity *aW4dPiFw;
  59. @property UIFont *aMmdRXfqOn9;
  60. @property UIActivity *a5UNe;
  61. @property UIKeyCommand *afQP9q;
  62. @property UIControlEvents *a8Oose;
  63. @property UIControl *aETp4gGtaN;
  64. @property UIControl *a9l0Jv2rEXe;
  65. @property UIAlertView *arVG0ko;
  66. @property UIBezierPath *aJZhF;
  67. @property UIMotionEffect *aOGFH;
  68. @property UIBarButtonItem *aa8Y6;
  69. @end
  70. @interface LPPageVC : LZMBaseViewController {
  71. UIScrollView * _contentScrollView;
  72. UIScrollView * _segmentScrollView;
  73. }
  74. @property (nonatomic, weak) id <LPPageVCDataSource> dataSource;
  75. @property (nonatomic, weak) id <LPPageVCDelegate> delegate;
  76. @property (nonatomic, assign) LPPageVCSegmentStyle segmentStyle;
  77. @property (nonatomic, strong) UIColor * normalTextColor;
  78. @property (nonatomic, strong) UIColor * higlightTextColor;
  79. @property (nonatomic, strong) UIColor * lineBackground;
  80. #pragma mark - means
  81. // 刷新数据
  82. - (void)reloadData;
  83. // 刷新一个具体的栏目
  84. - (void)reloadDataAtIndex:(NSUInteger)index;
  85. // 根据index获取对应的vc
  86. - (UIViewController *)viewControllerAtIndex:(NSUInteger)index;
  87. //设置选中的栏目
  88. - (void)setSelectedIndex:(NSInteger)index;
  89. @property UIInputView *a0E8MJPdn;
  90. @property UIActivity *aW4dPiFw;
  91. @property UIFont *aMmdRXfqOn9;
  92. @property UIActivity *a5UNe;
  93. @property UIKeyCommand *afQP9q;
  94. @property UIControlEvents *a8Oose;
  95. @property UIControl *aETp4gGtaN;
  96. @property UIControl *a9l0Jv2rEXe;
  97. @property UIAlertView *arVG0ko;
  98. @property UIBezierPath *aJZhF;
  99. @property UIMotionEffect *aOGFH;
  100. @property UIBarButtonItem *aa8Y6;
  101. @end