📜  在 swift 代码示例中获取视图的绝对位置

📅  最后修改于: 2022-03-11 15:00:59.549000             🧑  作者: Mango

代码示例1
//here aView is your view
let globalPoint = aView.superview?.convert(aView.frame.origin, to: nil)