scrollView三个基本的属性_contentSize、contentInset和contentOffset
来源:互联网 发布:淘宝刷流量安全吗 编辑:程序博客网 时间:2024/05/16 11:50
contentSize、contentInset和contentOffset 是 scrollView三个基本的属性。
contentSize: The size of the content view. 其实就是scrollview可以滚动的区域,比如frame = (0 ,0 ,320 ,480) contentSize = (320 ,960),代表你的scrollview可以上下滚动,滚动区域为frame大小的两倍。
contentOffset:The point at which the origin of the content view is offset from the origin of the scroll view. 是scrollview当前显示区域顶点相对于frame顶点的偏移量,比如上个例子你拉到最下面,contentoffset就是(0 ,480),也就是y偏移了480
contentInset:The distance that the content view is inset from the enclosing scroll view.是scrollview的contentview的顶点相对于scrollview的位置,例如你的contentInset = (0 ,100),那么你的contentview就是从scrollview的(0 ,100)开始显示
原文:点击打开链接
0 0
- scrollView三个基本的属性_contentSize、contentInset和contentOffset
- ios-day05-01(ScrollView的三个属性:contentSize、contentInset、contentOffset)
- scrollView的几个属性contentSize contentOffset contentInset
- scrollView的几个属性contentSize contentOffset contentInset
- scrollView的几个属性contentSize contentOffset contentInset
- scrollView的contentsize、contentInset和contentOffset区别
- iOS ScrollView的 contentSize contentInset contentOffset 三个属性直接的区别
- UIScrollView的基本属性ContentSize、ContentInset、ContentOffset
- ScrollView contentInset 和 contentOffset和frame 之间的含义
- scrollView中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属性
- IOS中UIScrollView的contentSize、contentOffset和contentInset属性
- IOS中UIScrollView的contentSize、contentOffset和contentInset属性
- python包的概念
- C++ STL之stack
- c++实现gray code(格雷码)
- python的argv最简单的用法
- C++处理一个动态规划的问题
- scrollView三个基本的属性_contentSize、contentInset和contentOffset
- CocoaPods安装和使用及问题:Setting up CocoaPods master repo
- 小编自述
- 新年的第一篇博客
- c++ new
- TOMCAT远程调试
- leangoo,让工作更简单
- 从html到css,从asp到php,从安卓到ios,从c语言到c#
- Spring中原型prototype的准确使用