---
title: "UIView的[convertRect: toView:]方法使用"
author: "zani"
date: "2011-06-02T17:26:50Z"
tags: []
categories: ["移动开发"]
slug: "uiview-convertrect-toview"
draft: false
lastmod: "2011-06-02T17:26:50Z"
id: 1068759
url: "https://zani.iteye.com/blog/1068759"
---

```
CGRect rr = [cell convertRect:cell.jingduBtn.frame toView:self.view]; 
```

 意思是：把UITableViewCell的subview(jingduBtn)的frame convert 到 controller的View中，

这里的controller view 包含一个UITableView, UITableView里有多行UITableVieCell