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

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

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

相关文章:

  • 2021-05-30
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2022-12-23
猜你喜欢
  • 2021-04-28
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案