self.scoreLabel.isUserInteractionEnabled = true
let nickScoretapGesture = UITapGestureRecognizer.init(target: self, action: #selector(HeadBarView.userscoresClick))
self.scoreLabel.addGestureRecognizer(nickScoretapGesture)
self.scoreLabel.isUserInteractionEnabled = true
let nickScoretapGesture = UITapGestureRecognizer.init(target: self, action: #selector(HeadBarView.userscoresClick))
self.scoreLabel.addGestureRecognizer(nickScoretapGesture)
本文标题:添加手势
本文链接:https://www.haomeiwen.com/subject/flrwsxtx.html
网友评论