Implement the UIScrollViewDelegate protocol in a view controller that contains both types of scrolling. IN:
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
delegate method, get content offset:
CGPoint offset = [scrollViewA contentOffset];
Then set another control with
- (void)setContentOffset:(CGPoint)contentOffset animated:(BOOL)animated
You can determine which one should be changed by comparing the delegate method above:
if( scrollView == scrollViewA ) // change offset of B else // change offset of A
source share