contentOffset默认CGPointZero,用来设置scrollView的滚动偏移量。 // 设置scrollView的滚动偏移量 scrollView.contentOffset = CGPointMake(0, 200);2. contentSize默认CGSizeZero,用来...
分类:
其他好文 时间:
2014-12-04 13:31:17
阅读次数:
162
@property(nonatomic) CGPoint contentOffset;这个属性用来表示UIScrollView滚动的位置@property(nonatomic) CGSize contentSize;这个属性用来表示UIScrollView内容的尺寸,滚动范围(能滚多远)@prope...
分类:
其他好文 时间:
2014-11-25 23:11:43
阅读次数:
188
-(void)scrollViewDidScroll:(UIScrollView *)scrollView{ double pageDouble = self.headerScroll.contentOffset.x/self.headerScroll.frame.size.width; int.....
分类:
其他好文 时间:
2014-11-07 18:57:20
阅读次数:
145
?CGSize contentSize:设置UIScrollView的滚动范围?CGPoint contentOffset:UIScrollView当前滚动的位置?UIEdgeInsets contentInset:增加滚动视图四周的增加滚动范围1.创建 UIScrollView *scrol...
分类:
移动开发 时间:
2014-11-07 11:10:13
阅读次数:
256
?@property(nonatomic) CGPoint contentOffset; ?这个属性用来表示UIScrollView滚动的位置? ?@property(nonatomic) CGSize contentSize;? ?这个属性用来表示UIScrollView内容的尺寸,滚动范围(能滚多远) ...
分类:
其他好文 时间:
2014-10-30 22:51:14
阅读次数:
276
属性作用CGPoint contentOffSet监控目前滚动的位置CGSize contentSize滚动范围的大小UIEdgeInsets contentInset视图在scrollView中的位置id delegate 设置协议 BOOL directionalL...
分类:
其他好文 时间:
2014-09-17 11:44:12
阅读次数:
133
UIScrollView1. contentOffset默认CGPointZero,用来设置scrollView的滚动偏移量。 // 设置scrollView的滚动偏移量 scrollView.contentOffset = CGPointMake(0, 200);2. contentSize默认C...
分类:
其他好文 时间:
2014-09-03 22:41:27
阅读次数:
209
uiTableView继承自uiScrollView所以此方法对uiTableView同样有效,测试发现:在uiTableView的偏移量中,scrollView.contentOffset.y是由ScrollView内容视图的高度与UITableView的高度比较而来的,视图向下移动偏移量增加,向...
分类:
其他好文 时间:
2014-08-31 02:46:00
阅读次数:
183
-(void)scrollByTimer{ CGPoint oldoffset = cellScrollView.contentOffset; CGPoint newOffset = CGPointMake(cellScrollView.contentOffset.x+320, cellScro.....
分类:
其他好文 时间:
2014-08-20 11:47:06
阅读次数:
180
contentSize是scrollview可以滚动的区域,比如frame = (0 ,0 ,320 ,480) contentSize = (320 ,960),代表你的scrollview可以上下滚动,滚动区域为frame大小的两倍。contentOffset是scrollview当前显示区域顶...
分类:
其他好文 时间:
2014-08-07 12:11:29
阅读次数:
189