Skip to content

Commit c7de8e8

Browse files
committed
New Layout
1 parent 0fccfa1 commit c7de8e8

File tree

62 files changed

+281
-251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+281
-251
lines changed

QMBParallaxScrollViewController/QMBParallaxScrollViewController.h

100644100755
Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,50 @@ typedef NS_ENUM(NSUInteger, QMBParallaxGesture) {
5252

5353

5454

55-
@interface QMBParallaxScrollViewController : UIViewController<UIGestureRecognizerDelegate>
55+
@interface QMBParallaxScrollViewController : UIViewController<UIGestureRecognizerDelegate, UIScrollViewDelegate>
5656

5757
@property (nonatomic, strong) id<QMBParallaxScrollViewControllerDelegate> delegate;
5858

5959
@property (nonatomic, strong, readonly) UIViewController * topViewController;
6060
@property (nonatomic, strong, readonly) UIViewController<QMBParallaxScrollViewHolder> * bottomViewController;
6161

6262
@property (nonatomic, assign, readonly) CGFloat topHeight;
63-
@property (nonatomic, assign, setter = setFullHeight:) CGFloat fullHeight;
64-
@property (nonatomic, assign, setter = setOverPanHeight:) CGFloat overPanHeight;
63+
@property (nonatomic, assign, setter = setMaxHeight:) CGFloat maxHeight;
64+
65+
/**
66+
* Set the height of the border (margin from top) that has to be scrolled over to expand the background view.
67+
* Default: 1.3 * topHeight
68+
*/
69+
@property (nonatomic, assign, setter = setMaxHeightBorder:) CGFloat maxHeightBorder;
70+
71+
/**
72+
* Set the height of the border (margin from top) that has to be scrolled under to minimize the background view
73+
* Default: fullHeight - 5.0f
74+
*/
75+
@property (nonatomic, assign, setter = setMinHeightBorder:) CGFloat minHeightBorder;
76+
77+
/**
78+
* To enable section support for UITableViews, default: true if UITableView is client scrollview
79+
* TODO: this option will disable decelerated scrolling (known bug)
80+
*/
81+
@property (nonatomic, assign) BOOL enableSectionSupport;
6582

6683
@property (nonatomic, readonly) QMBParallaxState state;
6784

85+
/**
86+
* The Parallax Scrollview that embeds the bottom (forground) view
87+
*/
88+
@property (nonatomic, readonly) UIScrollView *parallaxScrollView;
89+
90+
/**
91+
* Use the scrollview delegate for custom actions
92+
*/
93+
@property (nonatomic, weak) id<UIScrollViewDelegate> scrollViewDelegate;
94+
6895
// inits
6996
-(void) setupWithTopViewController:(UIViewController *)topViewController andTopHeight:(CGFloat)height andBottomViewController:(UIViewController<QMBParallaxScrollViewHolder> *)bottomViewController;
7097

7198

72-
- (void)parallaxScrollViewDidScroll:(CGPoint)contentOffset;
7399
// configs
74100

75101
/**

0 commit comments

Comments
 (0)