imageView.userInteractionEnabled = true
var singleTap:UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: "imageViewTouch")
imageView .addGestureRecognizer(singleTap)
imageView.userInteractionEnabled = true
var singleTap:UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: "imageViewTouch")
imageView .addGestureRecognizer(singleTap)
本文标题:view添加点击事件
本文链接:https://www.haomeiwen.com/subject/apscpttx.html
网友评论