iOS开发frame与bounds区别与关系
2012-11-02 15:27
495 查看
frame和bounds是UIView中的两个属性(property)。
frame指的是:该view在父view坐标系统中的位置和大小。(参照点是父亲的坐标系统)
bounds指的是:该view在本身坐标系统中 的位置和大小。(参照点是本身坐标系统)
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); }
相关文章推荐
- 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开发总结之 view的frame、center和和view的bounds之间的区别
- 【iOS界面布局】 frame 与 bounds 的区别与关系
- iOS开发 --frame和bounds区别详解
- iOS开发中frame与Bounds的区别,以及几何方法的小结
- iOS-开发中frame与Bounds的区别
- iOS开发-View中frame和bounds区别
- ios开发之UIView的frame、bounds跟center属性的区别(附图)
- iOS开发-frame与bounds的区别
- iOS开发中,bounds和frame的区别。iOS开发结构体属性值查看和控制器各种尺寸的获取小技巧。
- [IOS 开发] frame与bounds的区别比较
- ios开发---view的frame和bounds之区别(位置和大小)
- iOS开发之bounds与frame的区别