scrollview
2017-04-05 本文已影响4人
张家杰仔
//设置内容大小
_scrollview.contentSize = CGSizeMake(SCROLL_WIDTH *11, SCROLL_HEIGHT);
//设置偏移量(一开始出现 内容的位置)
self.scrollview.contentOffset = CGPointMake(0,0);
//隐藏内容进度条 (横向与纵向)
_scrollview.showsHorizontalScrollIndicator = NO;
_scrollview.showsVerticalScrollIndicator = NO;
//分页
_scrollview.pagingEnabled = YES;
//回弹
_scrollview.bounces = NO;