WMZPageController.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // WMZPageController.h
  3. // WMZPageController
  4. //
  5. // Created by wmz on 2019/9/22.
  6. // Copyright © 2019 wmz. All rights reserved.
  7. //
  8. #import "WMZPageLoopView.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface WMZPageController : UIViewController<UIScrollViewDelegate,WMZPageLoopDelegate,UITableViewDelegate>
  11. //参数
  12. @property(nonatomic,strong)WMZPageParam *param;
  13. //frame数组 如果出现frame不准确 可以手动调节一下这个数组的内容 [NSValue 存的rect]
  14. @property(nonatomic,strong)NSMutableArray *rectArr;
  15. //头部标题滚动视图
  16. @property(nonatomic,strong)WMZPageLoopView *upSc;
  17. //底部全屏滚动视图
  18. @property(nonatomic,strong)WMZPageScroller *downSc;
  19. //缓存
  20. @property(nonatomic,strong)NSCache *cache;
  21. //子控制器中可以滚动的视图
  22. @property(nonatomic,strong)NSMutableDictionary *sonChildScrollerViewDic;
  23. //子控制器中固定底部的视图
  24. @property(nonatomic,strong)NSMutableDictionary *sonChildFooterViewDic;
  25. //子控制器固定底部如果不是位于最左边 可设置此属性 默认为0
  26. @property(nonatomic,assign)CGFloat footViewOrginX;
  27. //子控制器固定底部宽度如果不是整个屏幕 可设置此属性 默认为底部滚动视图的宽度
  28. @property(nonatomic,assign)CGFloat footViewSizeWidth;
  29. //子控制器固定底部y值 default 最底部-height
  30. @property(nonatomic,assign)CGFloat footViewOrginY;
  31. /*
  32. *更新
  33. */
  34. - (void)updatePageController;
  35. /*
  36. *更新头部
  37. */
  38. - (void)updateHeadView;
  39. /*
  40. *底部手动滚动 传入CGPointZero则为吸顶临界点
  41. */
  42. - (void)downScrollViewSetOffset:(CGPoint)point animated:(BOOL)animat;
  43. /*
  44. *手动调用菜单到第index个
  45. */
  46. - (void)selectMenuWithIndex:(NSInteger)index;
  47. @end
  48. NS_ASSUME_NONNULL_END