关于UILabel事件的问题

时间:2011-01-24 02:28:52

标签: iphone objective-c uilabel

我在UITableViewCell中有一些UILabel。我的目的是在触摸特定的UILabel时调用一个函数。请给我一个思路。感谢。

1 个答案:

答案 0 :(得分:1)

UILabel是UIResponder的子类。您可以覆盖以下方法来处理触摸。

– touchesBegan:withEvent:
– touchesMoved:withEvent:
– touchesEnded:withEvent:
– touchesCancelled:withEvent:
相关问题