转换坐标系
2016-02-04 09:43
204 查看
frame 是以父控件左上角为坐标原点
bounce是以自己的坐标系来算
- (CGPoint)convertPoint:(CGPoint)point toView:(nullableUIView *)view;
- (CGPoint)convertPoint:(CGPoint)point fromView:(nullableUIView *)view;
- (CGRect)convertRect:(CGRect)rect toView:(nullableUIView *)view;
- (CGRect)convertRect:(CGRect)rect fromView:(nullableUIView *)view;
bounce是以自己的坐标系来算
- (CGPoint)convertPoint:(CGPoint)point toView:(nullableUIView *)view;
- (CGPoint)convertPoint:(CGPoint)point fromView:(nullableUIView *)view;
- (CGRect)convertRect:(CGRect)rect toView:(nullableUIView *)view;
- (CGRect)convertRect:(CGRect)rect fromView:(nullableUIView *)view;
相关文章推荐
- SQL Server 诊断查询-(5)
- centos 5.6.2上不了网
- sql server 服务作用简介
- UILabel的混合显示动画效果
- 函数定义、函数属性和方法
- SQL Server 诊断查询-(4)
- Mysql coalesce()函数认识和用法
- MySQL中事务的概述ACID了解
- Python-一张图
- Spring动态对Quartz定时任务的管理,实现动态加载,停止的配置实例代码
- Icinga2监控web、mysql状态
- Android自定义图片集合
- dsplib->cfft
- 聊一聊MD5
- java数据库编程——事务
- Apache添加多端口
- DWR3.0框架入门(1) —— 实现ajax
- 安卓自己定义对话框及The specified child already has a child问题
- 在Github上搭建自己的博客(Windows平台)
- 最简明扼要的 Systemd 教程,只需十分钟