【发布时间】:2019-05-23 12:18:54
【问题描述】:
我们需要 Lyft 按钮触摸事件,因为我从事分析工作,所以,我需要有多少人选择 Lyft,但我不能放置 UIView 点击事件。我试试下面的代码。
let gesture = UITapGestureRecognizer(target: self, action: #selector(self.checkAction))
cell.lyftButton.addGestureRecognizer(gesture)
我怎样才能做到这一点?
【问题讨论】: