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

float coordinate =2.0f;
[nodeScrollView setContentOffset:CGPointMake(460* coordinate,0) animated:YES];
 http://stackoverflow.com/questions/4436745/uiscrollview-with-next-and-previous-button-action
 

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!");

        }

    }

posted on 2012-06-06 14:12  easonoutlook  阅读(358)  评论(0编辑  收藏  举报