我在UIView控制器中创建了两个表,并给它们两个滚动。我只想在表NO DIAGONAL运动中进行水平和体验运动吗?
- (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;
}
}
现在我的问题是如何禁用或停止对角线滚动?