// 先计算cell的位置,再转化到view中的位置.
CGRect rectInTableView = [tableView rectForRowAtIndexPath:indexPath];
CGRect rectInSuperView = [tableView convertRect:rectInTableView toView:[tableView superview]];
NSLog(@"____ %@",NSStringFromCGRect(rectInSuperView));
如何获得UITableViewCell 在屏幕中的位置
最新推荐文章于 2021-05-06 10:00:43 发布