contentSize 、contentInset 和 contentOffset区分
来源:互联网 发布:手机软件强力卸载软件 编辑:程序博客网 时间:2024/05/21 18:34
1.contentSize 是scrollview中的一个属性,它代表scrollview中的可显示区域,假如有一个scrollview,它的frame为(0,0,320,480),而它的contentSize为(320,960).也就是说,这个scrollview整个内容的大小为(320,960),要通过上下滑动scrollview来查看(320,480)后的内容。
2.contentOffset 是scrollview当前显示区域顶点相对于frame顶点的偏移量,比如1中描述的情况,若滑动到最下方,contentoffset就是(0 ,480),也就是y偏移了480
3.contentInset 是scrollview中contentView.frame.origin与scrollview.frame.origin的关系,比如contentView的frame为(0,30,320,480),那么contentInset则为(0, 30)。即为内容从scrollview的(0,30)处开始显示。
0 0
- contentSize 、contentInset 和 contentOffset区分
- contentSize、contentInset和contentOffset
- contentSize、contentInset和contentOffset
- contentSize、contentInset和contentOffset
- contentSize、contentInset和contentOffset
- contentSize、contentInset和contentOffset
- contentSize、contentInset和contentOffset
- contentSize、contentInset和contentOffset
- contentSize、contentInset和contentOffset区别
- contentSize、contentInset和contentOffset区别
- contentsize、contentoffset 和contentInset 详解
- contentSize、contentInset和contentOffset区别
- contentSize、contentInset和contentOffset区别
- contentSize、contentInset和contentOffset区别
- contentsize、contentoffset和contentInset详解
- contentSize、contentInset和contentOffset区别
- contentSize、contentInset和contentOffset区别
- contentsize、contentoffset和contentInset详解
- 【Java】String、StringBuffer、StringBilder性能比较
- Screen会话命令
- Errors occurred during the build. Errors running builder 'Integrated External Tool Builder' on proje
- 面试题11:数值的整数次方
- jason数据格式 -- 扫盲
- contentSize 、contentInset 和 contentOffset区分
- BZOJ1798行星序列
- JS实现图片延迟加载(lazyload改编)
- 产品经理必读的九步法
- iOS事件传递,响应者链条
- AlphaAnimation渐变动画Demo
- Scala学习
- Linux下创建文件系统
- Git查看并修改name和email