scrollView几个费解的概念-contentSize,contentInset,bounds,contentOffset
来源:互联网 发布:淘宝延长收货设置 编辑:程序博客网 时间:2024/05/20 12:47
UIScrollView *scrollView;
scrollView.contentSize;// 滚动范围(内容的尺寸)
scrollView.contentInset;// 内边距(其实本质是改变了scrollView.bounds)
scrollView.frame;// 以父控件内容的左上角为坐标原点,scrollView矩形框的位置和尺寸
scrollView.bounds;// 以自己内容的左上角为坐标原点,scrollView矩形框的位置和尺寸
scrollView.contentOffset;// 偏移量(相当于scrollView.bounds.origin)
当导航控制器中的view中同时添加了多个scrollView控件,或者是它的子控件,这个时候苹果建议我们
将控制器的self.automaticallyAdjustsScrollViewInsets(自动调整insets)设为NO.
0 0
- scrollView几个费解的概念-contentSize,contentInset,bounds,contentOffset
- scrollView的几个属性contentSize contentOffset contentInset
- scrollView的几个属性contentSize contentOffset contentInset
- scrollView的几个属性contentSize contentOffset contentInset
- scrollview, contentSize, contentOffset, contentInset
- scrollView的contentsize、contentInset和contentOffset区别
- UIscrollView的几个属性contentSize contentOffset contentInset
- ScrollView中的contentSize、contentOffset、contentInset
- frame bounds center origin contentSize contentOffset contentInset
- ios-day05-01(ScrollView的三个属性:contentSize、contentInset、contentOffset)
- contentsize,contentoffset,contentinset的区别
- UIScrollView的contentSize、contentOffset、contentInset
- contentSize、contentInset、contentOffset的区别
- scrollView中contentSize、contentInset和contentOffset区别
- contentsize和contentoffset 还有contentInset的区别
- 有关UITableView的contentSize、contentInset和contentOffset
- 有关UITableView的contentSize、contentInset和contentOffset
- UIScrollView的基本属性ContentSize、ContentInset、ContentOffset
- jquery 使用 xhrFields 来获取下载进度的方法
- Oracle第三弹---PL/SQL游标
- 代码面试最常用的10大算法
- C++设计模式---观察者
- leetcode8 String to Integer (atoi)
- scrollView几个费解的概念-contentSize,contentInset,bounds,contentOffset
- 整数中1出现的次数(从1到n的整数中1出现的次数)
- jsp页面出现end tag "</c:forEach" is unbalanced
- PHP 性能分析与实验(二)——PHP 性能的微观分析
- LeetCode----First Missing Positive
- 可解锁当前VMware workstation Pro 12.0.0创建好os x10的虚拟机 亲测
- 用AjaxPro实现二级联动
- C# 获取系统时间及时间格式
- Waiting for table metadata lock问题的解决