如何让 UILabel 响应点击? - How to get UILabel to respond to tap?

问题:

I have discovered that I can create UILabel much faster than UITextField and I plan to use UILabel most of the time for my data display app.我发现创建 UILabel 的速度比 UITextField 快得多,而且我计划大部分时间将 UILabel 用于我的数据显示应用程序。

To make a long story short though, I wish to let the user tap on a UILabel and have my callback respond to that.长话短说,我希望让用户点击 UILabel 并让我的回调响应。 Is that possible?那可能吗?

Thanks.谢谢。


解决方案:

参考: https://stackoom.com/en/question/U1Aa
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章