我有一堆放置在 UIViewController1 中的水平 UITableView。我想找到被点击的 UITableViewCell 的位置,我想根据 UIViewController1 获得位置。所以这就是我在 didSelectRowAtIndexPath 中所做的:
MyCell *cell = (MyCell *)[tableView cellForRowAtIndexPath:indexPath];
UIView *animatedView = [[UIView alloc] initWithFrame:cell.frame];
[animatedView setFrame:[animatedView convertRect:animatedView.frame toView:self.newsRackController.view]];
但是,这似乎不能正确转换它。我究竟做错了什么?