如何讓 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章