ScrollBaseViewController.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // ScrollBaseViewController.h
  3. // CommonLibrary
  4. //
  5. // Created by Alexi on 3/18/14.
  6. // Copyright (c) 2014 Alexi. All rights reserved.
  7. //
  8. #if kSupportScrollController
  9. #import "BaseViewController.h"
  10. @interface ScrollBaseViewController : BaseViewController<UIGestureRecognizerDelegate>
  11. {
  12. @protected
  13. __weak UIView *_scrollableView;
  14. // UIView *_overlay;
  15. CGPoint _lastContentOffset;
  16. BOOL _isCollapsed;
  17. BOOL _isExpanded;
  18. BOOL _handleTabbar; // 是否处理tarbar
  19. // UIPanGestureRecognizer *_panGesture;
  20. }
  21. @property (nonatomic, weak) UIView *scrollableView;
  22. //@property (nonatomic, strong) UIView *overlay;
  23. @property (nonatomic, assign) CGPoint lastContentOffset;
  24. @property (nonatomic, assign) BOOL isCollapsed;
  25. @property (nonatomic, assign) BOOL isExpanded;
  26. @property (nonatomic, assign) BOOL isPanVailed;
  27. @property (nonatomic, strong) UIPanGestureRecognizer* panGesture;
  28. - (UIView *)crateOverlay:(CGRect)frame;
  29. - (void)followScrollView:(UIView *)scrollableView;
  30. - (void)updateSizingWithDelta:(CGFloat)delta;
  31. - (void)checkForPartialScrollEnd;
  32. // protected
  33. - (void)layoutOnScrollUp;
  34. - (void)layoutOnScrollDown;
  35. @end
  36. #endif