Created
October 16, 2017 19:44
-
-
Save bhamiltoncx/9dd3b2ff127f58a7d7b2dc83da608707 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma mark - UIScrollViewDelegate | |
- (void)scrollViewDidScroll:(UIScrollView *)scrollView { | |
if (scrollView == self.headerViewController.headerView.trackingScrollView) { | |
[self.headerViewController.headerView trackingScrollViewDidScroll]; | |
} | |
} | |
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView { | |
if (scrollView == self.headerViewController.headerView.trackingScrollView) { | |
[self.headerViewController.headerView trackingScrollViewDidEndDecelerating]; | |
} | |
} | |
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate { | |
if (scrollView == self.headerViewController.headerView.trackingScrollView) { | |
[self.headerViewController.headerView trackingScrollViewDidEndDraggingWillDecelerate:decelerate]; | |
} | |
} | |
- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView | |
withVelocity:(CGPoint)velocity | |
targetContentOffset:(inout CGPoint *)targetContentOffset { | |
if (scrollView == self.headerViewController.headerView.trackingScrollView) { | |
[self.headerViewController.headerView trackingScrollViewWillEndDraggingWithVelocity:velocity | |
targetContentOffset:targetContentOffset]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment