View difference between Paste ID: pHzQN7eq and KwMJ701P
SHOW: | | - or go back to the newest paste.
1
// insert this in viewWillDisappear:
2
// scrollView.scrollEnabled = NO;
3
4
// insert this in viewWillAppear:
5
// scrollView.scrollEnabled = YES;
6
7
@implementation MMParallaxHeaderScrollView
8
9
- (void)setContentOffset:(CGPoint)contentOffset {
10
    if (self.scrollEnabled) {
11
        [super setContentOffset:contentOffset];
12
    }
13
}
14
15
@end