我有一堆水平的UITableView放在UIViewController1中。我想找到被挖掘的UITableViewCell的位置,我想根據UIViewController1獲取位置。所以這是我在didSelectRowAtIndexPath中所做的:convertRect獲取超級視圖中的相對位置
MyCell *cell = (MyCell *)[tableView cellForRowAtIndexPath:indexPath];
UIView *animatedView = [[UIView alloc] initWithFrame:cell.frame];
[animatedView setFrame:[animatedView convertRect:animatedView.frame toView:self.newsRackController.view]];
但是,它似乎不能正確轉換它。我究竟做錯了什麼?
檢查[此答案](http://stackoverflow.com/a/4620507/442328)。 – KDaker