UIScrollView学习<1>理解 contentSize、contentInset和contentOffset
来源:互联网 发布:万得资讯软件 编辑:程序博客网 时间:2024/05/29 03:06
- contentSize(contentSize):字面意思就是”内容的大小”,其实就是scrollview可以滚动的区域。可以把UIScrollView看成是两层:“UIScrollView外壳(即我们设置的frame大小)” 和 “内容视图(即我们设置的contentSize大小)”
- contentOffset(contentOffset):字面意思就是内容视图离开的距离,frame和内容视图的参考点都是左上角,以frame的左上角为原点。内容视图离开frame的话就是正值,反之为负值。
- contentInset(UIEdgeInsets):字面意思就是内容视图在frame里面的距离。该值是刚开始就设定好的,不会改变。
注意 ,在创建UIScrollView
时,一定要指定UIScrollView
的contentSize
,意味它默认长、宽都为0。
0 0
- UIScrollView学习<1>理解 contentSize、contentInset和contentOffset
- UIScrollView 中的 contentSize 、contentOffset 、contentInset
- UIScrollView的contentSize、contentOffset、contentInset
- UIScrollView contentInset contentOffset contentSize 详解
- contentSize、contentInset和contentOffset
- contentSize、contentInset和contentOffset
- contentSize、contentInset和contentOffset
- contentSize、contentInset和contentOffset
- contentSize、contentInset和contentOffset
- contentSize、contentInset和contentOffset
- contentSize、contentInset和contentOffset
- IOS开发—UIScrollView的contentSize、contentInset、contentOffset的理解
- IOS中UIScrollView的contentSize、contentOffset和contentInset属性
- IOS中UIScrollView的contentSize、contentOffset和contentInset属性
- IOS中UIScrollView的contentSize、contentOffset和contentInset属性
- IOS中UIScrollView的contentSize、contentOffset和contentInset属性
- IOS中UIScrollView的contentSize、contentOffset和contentInset属性
- iOS 网络编程 UIScrollView contentsize contentoffset 和contentinset的区别
- 高并发模式之reactor原型代码
- 成功的背后!(给所有IT人)----转载:来自CSDN第一名博主
- 华为OJ题库-字符串通配符
- Android 短信验证
- Java创建/遍历二叉树
- UIScrollView学习<1>理解 contentSize、contentInset和contentOffset
- Linux 每天一命定之echo
- mysql 性能优化方向
- 二分查找-递归和非递归
- Android多线程下载文件
- 国外程序员整理的C++ 资源大全
- mdadm使用详解及RAID 5简单分析
- 手机号码归属地查询api接口
- 通过URL获取数据