View Frame、bounds、clipsToBounds、masksToBounds
2015-12-29 09:01
295 查看
Frame:其位置坐标是相对于对于父view, 例如 view.frame为(100,100,200,50)
bounds:其位置坐标是相对于自己,例如:view.bounds 为(0 , 0 , 200, 50)
clipsToBounds:是类View的属性,如果设置为yes,则不显示超出父View的部分
masksToBounds:是类CALayer的属性,如果设置为yes,则不显示超出父View layer的部分
bounds:其位置坐标是相对于自己,例如:view.bounds 为(0 , 0 , 200, 50)
clipsToBounds:是类View的属性,如果设置为yes,则不显示超出父View的部分
masksToBounds:是类CALayer的属性,如果设置为yes,则不显示超出父View layer的部分
相关文章推荐
- GitLab完整搭建(版本6.3.1)
- 非正式协议
- percona-toolkit 之 【pt-table-checksum】、【pt-table-sync】说明
- 详解SQL Server连接(内连接、外连接、交叉连接)
- spring中freemarker自定义标签详解
- Mybatis基础知识--入门程序篇1
- HTML5知识初级题目
- require(__DIR__ . "/../sss.php"
- Python发送邮件
- 春节红包大战一触即发,QQ红包能否重塑游戏规则?
- 特征选择的方法
- iOS开发 百度地图高德地图谷歌地图系统地图
- C# 序列化与反序列化几种格式的转换
- iOS/OS X线程安全的基础知识
- 数组操作
- mysql性能测试工具之tpcc-mysql
- BTS PenTesting Lab - A5 Security Misconfiguration
- Win10 Mobile 10586.29重要更新 可以玩wp7中的游戏
- 2016年总结第一弹:团队管理
- UE4 通过HTTP 接受JPG并动态 构建 UTexture2D 简单例子