View Frame、bounds、clipsToBounds、masksToBounds
2015-12-12 12:01
387 查看
http://blog.csdn.net/u012282092/article/details/38428577
Frame:其位置坐标是相对于对于父view, 例如 view.frame为(100,100,200,50)
bounds:其位置坐标是相对于自己,例如:view.bounds 为(0 , 0 , 200, 50)
clipsToBounds:是类View的属性,如果设置为yes,则不显示超出父View的部分
masksToBounds:是类CALayer的属性,如果设置为yes,则不显示超出父View layer的部分
Frame:其位置坐标是相对于对于父view, 例如 view.frame为(100,100,200,50)
bounds:其位置坐标是相对于自己,例如:view.bounds 为(0 , 0 , 200, 50)
clipsToBounds:是类View的属性,如果设置为yes,则不显示超出父View的部分
masksToBounds:是类CALayer的属性,如果设置为yes,则不显示超出父View layer的部分
相关文章推荐
- 我的2015---找寻真实的自己
- CPP 6th——类(7)
- App竞品技术分析 (3)减小安装包的体积(转)
- [深入浅出Windows 10]模拟实现微信的彩蛋动画
- Python: scikit-image Blob detection
- 客户端提交内容的HTML内容过滤根据
- sublime There are no packages available for installation错误
- mschart在VS2005下的使用
- Android Studio 快捷键
- 使用PohtoView出现java.lang.IllegalArgumentException: pointerIndex out of range
- git使用入门
- Python: scikit-image 彩色图像滤波
- USACO--Friday the Thirteenth
- d3d纹理参数
- [转] LINUX内核代码编程规范
- Swift中的if语句使用where
- Compare Strings
- LeetCode OJ:LRU Cache(最近使用缓存)
- 【8】Dom4j和XPath
- 使用TabLayout快速实现一个导航栏