func picTap(sender: UITapGestureRecognizer) {
let point = sender.location(in: sender.view)
}
其中获取的point为相对于sender.view的位置
备份:http://www.jianshu.com/p/9de24415dce1
2022-12-21 08:26:25
func picTap(sender: UITapGestureRecognizer) {
let point = sender.location(in: sender.view)
}
其中获取的point为相对于sender.view的位置
备份:http://www.jianshu.com/p/9de24415dce1