计算Cell中view中的位置

CGRect rectInTableView = [tableView rectForRowAtIndexPath:indexPath];
CGRect rectInSuperview = [tableView convertRect:rectInTableView toView:[tableView superview]];

先计算cell的位置,再转化到view中的位置.

猜你喜欢

转载自huqiji.iteye.com/blog/2104533