设置
1.设定滚动内容的范围(CGSize)
scrollView.contentSize = CGSizeMake(4000,4000);
2.内容距离 上左下右 边缘的距离
scrollView.contentInset = CGEdgeInsetsMake(50,20,0,0);
3.关掉边缘弹动效果
scrollView.bounces = No;
4.滑动到顶部
scrollView.scrollsToTop = YES;
5整屏翻动
scrollView.pagingEnabled = YES;
6,scrollView能不能滚动
scrollView.scrollEnabled = YES; // no为不能滚
7.是否显示横向的滚动条
scrollView.showsHorizontalScrollIndicator = NO;
8.缩放
scrollView.minimumZoomScale = 0.5; //最小范围
scrollView.maximumZoomScale = 2 ; //最大范围