获取 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!)
本文标题:Cell 相对于 TableView 的坐标
本文链接:https://www.haomeiwen.com/subject/mljhdxtx.html
网友评论