IOS中UIScrollView的contentSize、contentOffset属性
来源:互联网 发布:linux退出for循环 编辑:程序博客网 时间:2024/05/18 02:04
contentSize属性:是UIScrollView可以滚动的区域 而uiScrollView有一个frame属性 frame控制着UIScrollView的大小,比如:若frame = (0, 0, 320, 480) contentSize = (320, 960),代表本UIScrollView可以上下滚动,滚动区域为frame大小的两倍。
contentOffset 是UIScrollView当前显示区域的顶点相对于frame顶点的偏移量,例如上面的例子如果拉到最下面,则contentOffset就是(0, 480),也就是y偏移了480. 如图:
scrollView.contentOffset.y:9.500000
scrollView.contentOffset.y:19.000000
......
scrollView.contentOffset.y:163.500000
每向下移动 就y轴就增大;就是contentOffset的值; 0 0
- IOS中UIScrollView的contentSize、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属性
- iOS中UIScrollView的frame、contentSize、contentOffset和contentInset属性
- IOS中UIScrollView的contentSize、contentOffset和contentInset属性(转)
- UIScrollView的属性contentSize contentOffset
- UIScrollView的基本属性ContentSize、ContentInset、ContentOffset
- UIscrollView的几个属性contentSize contentOffset contentInset
- UIScrollView的frame,contentSize,contentOffset,contentInset属性
- ios-day05-06(灵活使用UIScrollView的三个属性:contentSize、contentInset、contentOffset,模仿“喜马拉雅”的界面)
- iOS基础控件:UIScrollView 之三大属性 contentOffset 、contentSize 、contentInset 之间的区别
- UIScrollView的contentSize、contentOffset、contentInset
- 在libuv之上做的简单C++封装
- Window平台Lua编译和环境搭建
- 邮件发送系统设计——忘记密码发送邮件的设计(1)
- NDK开发(三):JNI数据类型的详解
- UVa 1594 - Ducci Sequence
- IOS中UIScrollView的contentSize、contentOffset属性
- 系统性能事务监控(监控数据库耗时等)
- NDK开发(四):JNI数据结构之JNINativeMethod
- Android Performance(1) StrictMode
- Oracle迁移Postgresql 遇到的一些问题记录
- ffmpeg + x264 编译成给Android开发端用的 动态库
- js 替换字符串
- NDK开发(五):Android JNI层实现文件的read、write与seek操作
- httpclient 从服务器A 上传文件到服务器B