ios自学--contentsize、contentoffset和contentInset备忘
来源:互联网 发布:阿拉比卡咖啡豆 知乎 编辑:程序博客网 时间:2024/06/05 07:24
contentSize是scrollview可以滚动的区域,比如frame= (0 ,0 ,320 ,480) contentSize = (320,960),代表你的scrollview可以上下滚动,滚动区域为frame大小的两倍。
contentOffset是scrollview当前显示区域顶点相对于frame顶点的偏移量,比如上个例子你拉到最下面,contentoffset就是(0,480),也就是y偏移了480
contentInset是scrollview的contentview的顶点相对于scrollview的位置,例如你的contentInset= (0 ,100),那么你的contentview就是从scrollview的(0 ,100)开始显示
contentOffset是scrollview当前显示区域顶点相对于frame顶点的偏移量,比如上个例子你拉到最下面,contentoffset就是(0,480),也就是y偏移了480
contentInset是scrollview的contentview的顶点相对于scrollview的位置,例如你的contentInset= (0 ,100),那么你的contentview就是从scrollview的(0 ,100)开始显示
0 0
- ios自学--contentsize、contentoffset和contentInset备忘
- ios contentSize contentOffset contentInset
- IOS:contentSize,contentOffset,contentInset
- 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区别
- Tachyon:一个高性能、高容错、基于内存的开源分布式存储系统
- 状态机来做键盘
- 用Apache Spark进行大数据处理——第一部分:入门介绍
- Extjs置表单所有输入域为readonly状态
- 好记性不如烂笔头77-多线程-Thread子类的线程对象是不同的
- ios自学--contentsize、contentoffset和contentInset备忘
- 10个HTML5美化版复选框和单选框
- Spring.Net 泛型对象注入
- Zend Framework1-Zend_Layout 配置选项
- 消息传递
- 用vector实现二维向量
- 责任链模式
- COM易犯的错误
- SDN 实践之floodlight控制器统计流量种类