【iOS界面布局】 frame 与 bounds 的区别与关系
来源:互联网 发布:中国网络空间研究院 编辑:程序博客网 时间:2024/05/24 05:10
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
[版权声明]本站内文章,如未特别注明,均系原创或翻译之作,本人 Unmi 保留一切权利。本站原创及译作未经本人许可,不得用于商业用途及传统媒体。网络媒体可随意转载,或以此为基础进行演译,但务必以链接形式注明原始出处和作者信息,否则属于侵权行为。另对本站转载他处文章,俱有说明,如有侵权请联系本人,本人将会在第一时间删除侵权文章。及此说明,重之之重。
- 【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的区别
- iOS frame与bounds的区别
- UIViewController间的传值
- Eclipse自动部署项目到Tomcat的webapps下的有效方法
- cocos2d-x下封装了ios的新浪、腾讯微博和微信的分享模块
- 黑马程序员-Java高新技术之工具的使用和JDK5新特性
- 图形视图体系(The Graphics View Framework)
- 【iOS界面布局】 frame 与 bounds 的区别与关系
- UVA 270 (13.11.06)
- Sencha Architect 2: A WYSIWYG IDE for Building Desktop and Mobile HTML5 App
- Event Code: 3005 An unhandled exception has occurred.
- ftp服务器端协议分析以及java版本实现
- POJ_2187_Beauty Contest(凸包+暴力)
- TypedArray的用法和declare-styleable:自定义控件的属性
- 点击页面链接跳转到指定位置
- android适配各种分辨率的问题