swift UITapGestureRecognizer获取点击事件点击的位置point

it2022-05-05  129

func picTap(sender: UITapGestureRecognizer) { let point = sender.location(in: sender.view) }

其中获取的point为相对于sender.view的位置

备份:http://www.jianshu.com/p/9de24415dce1

转载于:https://www.cnblogs.com/kunH/p/7263758.html


最新回复(0)