获取cell的相对位置
2016-04-12 本文已影响78人
Windream
UITableViewCell* cell = [tableView cellForRowAtIndexPath:indexPath];
CGRect rect = [keyWindow convertRect:CGRectMake(0, 0, cell.frame.size.width, cell.frame.size.height) fromView:cell];
UITableViewCell* cell = [tableView cellForRowAtIndexPath:indexPath];
CGRect rect = [keyWindow convertRect:CGRectMake(0, 0, cell.frame.size.width, cell.frame.size.height) fromView:cell];