UIScrollView *scrollView = [[UIScrollView alloc]initWithFrame:[[UIScreen mainScreen]bounds]];
scrollView.backgroundColor = [UIColor redColor];
scrollView.contentSize = CGSizeMake(375, 667 * 5);//总内容页的大小
scrollView.minimumZoomScale = 0.5;//最小缩放比例, 默认值是1.0, float类型
scrollView.maximumZoomScale = 4;//最大缩放比例, 默认值是1.0, float类型
scrollView.zoomScale = 1.0;//当前缩放比例
scrollView.contentOffset = CGPointMake(0, 0);//当前内容的偏移量
scrollView.scrollEnabled = YES;//是否允许滚动, 默认是YES;
scrollView.scrollsToTop = YES;//点击标题栏, 是否允许滚动到顶部, 默认值YES;
scrollView.showsHorizontalScrollIndicator = YES;//是否显示水平滚动条, 默认是YES;
scrollView.showsVerticalScrollIndicator = YES;//是否显示竖直滚动条, 默认是YES;
[scrollView setZoomScale:1.0 animated:YES];//设置当前缩放比例, 是否添加动画;//默认是NO;
//scrollView setContentOffset:<#(CGPoint)#> animated:<#(BOOL)#>//设置当前内容偏移量, 是否添加动画效果, 默认值是NO;
scrollView.bounces = YES;//是否回弹, 默认值是NO;//这里不是bounds, 记得区分
scrollView.pagingEnabled = YES;//是否整屏滚动, 默认是NO;
scrollView.alwaysBounceHorizontal = YES;//是否水平回弹, 默认NO
scrollView.alwaysBounceVertical = YES;//是否竖直回弹, 默认NO