UIscrollView通过Button来实现view的切换的方法

float coordinate =2.0f;
[nodeScrollView setContentOffset:CGPointMake(460* coordinate,0) animated:YES];
 

for (UIView *view in [[self superview] subviews]) {

        if ([view isKindOfClass:[UIScrollView class]]) {

            UIScrollView *bgView = (UIScrollView *)view;

            [bgView setContentOffset:CGPointMake(0, 0) animated:YES];

            DLog(@"Slide to ringtone view!");

        }

    }

原文地址:https://www.cnblogs.com/easonoutlook/p/2642802.html