坐标转换
来源:互联网 发布:电驴mac 怎么打开种子 编辑:程序博客网 时间:2024/06/10 08:35
// controllerA 中有一个UITableView, UITableView里有多行UITableVieCell,cell上放有一个button
// 在controllerA中实现:
CGRect rc = [cell convertRect:cell.btn.frame toView:self.view];
// 或
CGRect rc = [self.view convertRect:cell.btn.frame fromView:cell];
// 此rc为btn在controllerA中的rect
// 或当已知btn时:
CGRect rc = [btn.superview convertRect:btn.frame toView:self.view];
// 或
CGRect rc = [self.view convertRect:btn.frame fromView:btn.superview];
// 在controllerA中实现:
CGRect rc = [cell convertRect:cell.btn.frame toView:self.view];
// 或
CGRect rc = [self.view convertRect:cell.btn.frame fromView:cell];
// 此rc为btn在controllerA中的rect
// 或当已知btn时:
CGRect rc = [btn.superview convertRect:btn.frame toView:self.view];
// 或
CGRect rc = [self.view convertRect:btn.frame fromView:btn.superview];
0 0
- 坐标转换
- 坐标转换
- 坐标转换
- 坐标转换
- 坐标转换
- 坐标转换
- 坐标转换
- 坐标转换
- 坐标转换
- 坐标转换
- 坐标转换
- 坐标转换
- 坐标转换
- 坐标转换
- 坐标转换
- 坐标转换
- 坐标转换
- 百度坐标转换GPS坐标
- 回调函数
- Java高级视频_IO输入与输出(二)
- 关于DataAdapter打开和关闭连接
- ENetwork Chapter 7 - CCNA Exploration (Version 4.0)
- 从一个activity中启动另一个activity
- 坐标转换
- 聚类算法的MapReduce并行化分析
- 通过intent、ClipboardManager在android不同activity之间传递数据
- Ubuntu+QT+VTK+Eclipse&QtCreator开发平台的搭建(一行命令即可)
- hdu 3594 Cactus /uva 10510 仙人掌图判定
- 皮肤检测与克服光线影响的连通域寻找
- 数据包跨网寻址转发过程
- 中国人思维的逻辑缺陷
- Android Tween动画之RotateAnimation实现图片不停旋转