代码改变世界

让uiscrollview跳转到指定的页显示(y值)

2011-11-15 14:40  java环境变量  阅读(339)  评论(0编辑  收藏  举报

scrollView.contentSize = CGSizeMake(scrollView.frame.size.width, 960);

[scrollView scrollRectToVisible:CGRectMake(0, 100, scrollView.frame.size.width, scrollView.frame.size.height) animated:NO];

[scrollView scrollRectToVisible:CGRectMake(0, 200scrollView.frame.size.widthscrollView.frame.size.heightanimated:NO];

[scrollView scrollRectToVisible:CGRectMake(0300scrollView.frame.size.widthscrollView.frame.size.heightanimated:NO];