让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, 200, scrollView.frame.size.width, scrollView.frame.size.height) animated:NO];
[scrollView scrollRectToVisible:CGRectMake(0, 300, scrollView.frame.size.width, scrollView.frame.size.height) animated:NO];