Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // insert this in viewWillDisappear:
- // scrollView.scrollEnabled = NO;
- // insert this in viewWillAppear:
- // scrollView.scrollEnabled = YES;
- @implementation MMParallaxHeaderScrollView
- - (void)setContentOffset:(CGPoint)contentOffset {
- if (self.scrollEnabled) {
- [super setContentOffset:contentOffset];
- }
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement