如何获得UITableViewCell 在屏幕中的位置

来源:互联网 发布:申报华文数据库 编辑:程序博客网 时间:2024/05/16 19:42
// 先计算cell的位置,再转化到view中的位置.CGRect rectInTableView = [tableView rectForRowAtIndexPath:indexPath];     CGRect rectInSuperView = [tableView convertRect:rectInTableView toView:[tableView superview]];     NSLog(@"____ %@",NSStringFromCGRect(rectInSuperView));

0 0
原创粉丝点击