UIScrollView的相关属性说明
_scrollView = [[UIScrollView alloc] init];
//height = 0:禁止垂直方向滚动 _scrollView.contentSize = CGSizeMake(kTwo * kScreenW, 0);
//不显示水平方向的滚动条 _scrollView.showsHorizontalScrollIndicator = NO;
//不分页,手指滑到哪里scrollview就滚动到哪里
_scrollView.pagingEnabled = NO;
//scrollView滚动到边缘的时候不会反弹 _scrollView.bounces = NO; _scrollView.delegate = self; _scrollView.backgroundColor = [ColorTools tabbarColor];