I have created two table in UIView controller and given scroll to both. I only want Horizontal and Verital movement in table NO DIAGONAL movement ?
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
if (scrollView == _programGuideTable) {
_channelGuideTable.contentOffset = CGPointMake(_channelGuideTable.contentOffset.x, _programGuideTable.contentOffset.y);
return;
}
if (scrollView == _channelGuideTable) {
_programGuideTable.contentOffset = CGPointMake(_programGuideTable.contentOffset.x, _channelGuideTable.contentOffset.y);
return;
}
}
Now my question is how to disable or stop diagonal scrolling ?