- (void)viewDidLoad {
UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:self.view.frame];
scrollView.contentSize = CGSizeMake(847, 1129);//滚动条视图内容范围的大小
scrollView.showsHorizontalScrollIndicator = FALSE;//水平滚动条是否显示
scrollView.showsVerticalScrollIndicator = FALSE;//垂直滚动条是否显示
UIImage *image = [UIImage imageNamed:@"chart_847.gif"];
UIImageView *imageView = [[UIImageView alloc] initWithImage: image];
[image release];
[scrollView addSubview:imageView];
[imageView release];
[self.view addSubview:scrollView];
[scrollView release];
[self.view bringSubviewToFront:toolBar];//添加一个工具栏
}