美文网首页iOS Developer
Swift touch点获取

Swift touch点获取

作者: Zhui_Do | 来源:发表于2017-03-31 10:39 被阅读50次

touchesBegan中的touch点获取

override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        let touch:UITouch = ((touches as NSSet).anyObject()! )as!UITouch
        let point = touch.location(in: self)
     
    }
    

相关文章

网友评论

    本文标题:Swift touch点获取

    本文链接:https://www.haomeiwen.com/subject/sbwmottx.html