屬性
//隱藏scroll滑動(dòng)條
_scroll.showsVerticalScrollIndicator = FALSE;//垂直滑動(dòng)條
_scroll.showsHorizontalScrollIndicator = NO;//水平滑動(dòng)條
//禁止scroll滑動(dòng)
[_scroll2 setScrollEnabled:NO];
//禁止scroll彈簧效果
_scroll.bounces=NO;
//ScrollView分頁
_mainScrollView.pagingEnabled = YES;
//控制scroll移動(dòng)到指定位置 animated設(shè)置移動(dòng)時(shí)的動(dòng)畫
[_scroll setContentOffset:CGPointMake(iii, 0) animated:YES];
//scrollView滾動(dòng)的當(dāng)前位置x坐標(biāo)
scrollView.contentOffset.x
方法
//scrollView滑動(dòng)代理方法
-(void)scrollViewDidScroll:(UIScrollView *)scrollView