iOS开发 frame 与 bounds 的区别与关系
来源:互联网 发布:拉格朗日插值算法程序 编辑:程序博客网 时间:2024/06/12 09:13
frame和bounds是UIView中的两个属性(property)。
frame指的是:该view在父view坐标系统中的位置和大小。(参照点是父亲的坐标系统)
bounds指的是:该view在本身坐标系统中 的位置和大小。(参照点是本身坐标系统)
-(CGRect)frame{ return CGRectMake(self.frame.origin.x,self.frame.origin.y,self.frame.size.width,self.frame.size.height);}
-(CGRect)bounds{ return CGRectMake(0,0,self.frame.size.width,self.frame.size.height);}
本文原始链接:http://unmi.cc/ios-bounds-frame, 来自:隔叶黄莺 Unmi Blog
本文链接 http://unmi.cc/ios-bounds-frame, 来自 隔叶黄莺 Unmi Blog
- iOS开发 frame 与 bounds 的区别与关系
- iOS开发 frame 与 bounds 的区别与关系
- iOS开发 frame 与 bounds 的区别与关系
- iOS开发 frame 与 bounds 的区别与关系
- iOS开发 frame 与 bounds 的区别与关系
- iOS开发 frame 与 bounds 的区别与关系
- iOS开发 frame 与 bounds 的区别与关系
- iOS开发frame与bounds区别与关系
- 【iOS界面布局】 frame 与 bounds 的区别与关系
- Frame 与 bounds 的区别与关系
- frame 与 bounds 的区别与关系
- frame与bounds的关系与区别
- frame 与 bounds 的区别与关系
- [IOS 开发] frame与bounds的区别比较
- iOS-开发中frame与Bounds的区别
- iOS开发-frame与bounds的区别
- ios frame与bounds的区别比较
- IOS frame与bounds的区别
- WinCE6.0 USB Function驱动加载流程
- 变量运算符和表达式
- jquery计算和
- expect脚本解释
- openstack-cinder_lvm_driver命令汇总
- iOS开发 frame 与 bounds 的区别与关系
- WinCE6.0+S3C6410 USB驱动架构分析
- spoj 247
- OC学习之UIKit的类层次结构图
- URAL 1297 Palindrome(最长回文子串 )
- Android
- 正则表达式30分钟入门教程
- 函数重载的简单示例
- hdu 4627 (多校联赛第3场1008)