Cell 相对于 TableView 的坐标
2017-08-21 本文已影响23人
冰霜海胆
获取 cell 相对于 tableView 的坐标,可以使用以下方法:
let rowRect = tableView.rectForRow(at: indexPath!)
tableView.convert(rowRect, to: tableView.superview!)
获取 cell 相对于 tableView 的坐标,可以使用以下方法:
let rowRect = tableView.rectForRow(at: indexPath!)
tableView.convert(rowRect, to: tableView.superview!)