-(void)scrollViewDidScroll:(UIScrollView*)scrollView{if(self.iPageControl){ self.iPageControl.currentPage= scrollView.contentOffset.x/kScreen_w +0.5;}...
分类:
其他好文 时间:
2015-09-01 01:36:26
阅读次数:
147
frame属性frame 是UIView中表示该控件所占有矩形区域。该属性是相对与它的superView(父视图控件)来说的。[superViewinsertSubview:childViewatIndex:0];childView.frame=CGRectMake(0, 0,320,460);ch...
分类:
其他好文 时间:
2015-08-29 15:15:20
阅读次数:
175
一、UIScrollView属性1.常见的属性// 移动的位置
@property(nonatomic) CGPoint contentOffset;
// 内容的大小
@property(nonatomic) CGSize contentSize;
// 四边扩展的边距
@property(nonatomic) UIEdgeInsets contentInset;2.其他属性// 弹簧效果
@pr...
分类:
移动开发 时间:
2015-08-29 06:20:53
阅读次数:
183
UIScrollView1.contentOffset默认CGPointZero,用来设置scrollView的滚动偏移量。//设置scrollView的滚动偏移量scrollView.contentOffset=CGPointMake(0,200);2.contentSize默认CGSizeZer...
分类:
其他好文 时间:
2015-08-28 19:21:12
阅读次数:
138
contentSize是scrollview可以滚动的区域,比如frame = (0 ,0 ,320 ,480) contentSize = (320 ,960),代表你的scrollview可以上下滚动,滚动区域为frame大小的两倍。? contentOffset是scrollview当前显示区域顶点...
分类:
移动开发 时间:
2015-08-28 09:43:20
阅读次数:
156
1.contentOffset默认CGPointZero,用来设置scrollView的滚动偏移量。 // 设置scrollView的滚动偏移量 scrollView.contentOffset = CGPointMake(0, 200);2.contentSize默认CGSizeZer...
分类:
其他好文 时间:
2015-08-17 13:48:45
阅读次数:
147
UIScrollView作者:woainilsr原地址:http://www.cnblogs.com/woainilsr/archive/2012/03/28/2421881.html属性作用CGPoint contentOffSet监控目前滚动的位置CGSize contentSize滚动范围的大...
分类:
其他好文 时间:
2015-08-14 21:23:06
阅读次数:
138
@property(nonatomic) CGPoint contentOffset; // default CGPointZero@property(nonatomic) CGSize contentSize; //...
分类:
移动开发 时间:
2015-08-12 16:27:56
阅读次数:
193
CGPoint offset = self.collectionView.contentOffset; (self.collectionView.contentOffset.y > 0) ? offset.y-- : offset.y++; [self.collectionView setConte...
分类:
移动开发 时间:
2015-08-12 13:10:39
阅读次数:
148
ios开发:图片浏览器优化(三个uiimageview进行循环展示图片、设置contentoffset为中)、uitableview(plain/group两种格式、增加索引、数据源协议方法(返回单元格组数、单元格行数、自定义单元格、设置单元格显示uilabel等)、单元格重用(缓存池、重用符))
分类:
移动开发 时间:
2015-07-31 10:29:36
阅读次数:
189