【发布时间】:2012-09-05 00:05:18
【问题描述】:
我有一堆放在 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]];
但是,这似乎不能正确转换它。我做错了什么?
【问题讨论】:
-
检查this answer。
标签: iphone objective-c ios ipad uiview