scrollview, contentSize, contentOffset, contentInset
来源:互联网 发布:农爱帮软件下载 编辑:程序博客网 时间:2024/06/05 03:44
contentSize 是scrollview中的一个属性,它代表scrollview中的可显示区域,假如有一个scrollview,它的frame为(0,0,320,480),而它的contentSize为(320,960).也就是说,这个scrollview整个内容的大小为(320,960),要通过上下滑动scrollview来查看(320,480)后的内容。
contentOffset 是scrollview当前显示区域顶点相对于frame顶点的偏移量,比如上个例子你拉到最下面,contentoffset就是(0 ,480),也就是y偏移了480
contentInset 是scrollview中contentView.frame.origin与scrollview.frame.origin的关系,比如contentView的frame为(0,30,320,480),那么contentInset则为(0, 30),
本文旨在让自己记录一些零散的小知识点。同时也为大家提供参考。
- scrollview, contentSize, contentOffset, contentInset
- ScrollView中的contentSize、contentOffset、contentInset
- scrollView的几个属性contentSize contentOffset contentInset
- scrollView的几个属性contentSize contentOffset contentInset
- scrollView的几个属性contentSize contentOffset contentInset
- scrollView中contentSize、contentInset和contentOffset区别
- scrollView的contentsize、contentInset和contentOffset区别
- contentSize, contentOffset, contentInset区别
- ios contentSize contentOffset contentInset
- contentSize、contentInset和contentOffset
- IOS:contentSize,contentOffset,contentInset
- contentSize、contentInset和contentOffset
- contentSize、contentInset和contentOffset
- contentSize、contentInset和contentOffset
- contentSize、contentInset、contentOffset关系
- contentSize/contentOffset/contentInset区别
- contentSize、contentInset和contentOffset
- contentSize、contentOffset、contentInset
- tcp滑动窗口协议——《TCP/IP详解,卷1:协议》
- matlab绘图
- SVN服务器搭配说明
- WM_PAINT消息处理过程
- 杭电1238—搜索入门题目&&字符串处理
- scrollview, contentSize, contentOffset, contentInset
- MFC控件变量
- js 去掉空格.回车.换行
- JAVA中null,"",equals,==相互之间使用详解
- Java中类成员初始化顺序问题
- linux计划任务详解
- JNDI 是什么
- Knowledge
- UVA11045My T-Shirt Suits Me