添加手势

2017-09-19  本文已影响0人  林小姐的那片海
        self.scoreLabel.isUserInteractionEnabled = true
        let nickScoretapGesture = UITapGestureRecognizer.init(target: self, action: #selector(HeadBarView.userscoresClick))
        self.scoreLabel.addGestureRecognizer(nickScoretapGesture)
上一篇下一篇

猜你喜欢

热点阅读