开发者

Question about Event of UILabel

开发者 https://www.devze.com 2023-02-06 02:56 出处:网络
I hava some UILabel in UITableViewCell. My purpose is to call a function when I touch the specific UILabel. Please give me t开发者_StackOverflow中文版he train of thought.

I hava some UILabel in UITableViewCell. My purpose is to call a function when I touch the specific UILabel. Please give me t开发者_StackOverflow中文版he train of thought. Thanks.


UILabel is a subclass of UIResponder. You can override the these following methods to handle touches.

– touchesBegan:withEvent:
– touchesMoved:withEvent:
– touchesEnded:withEvent:
– touchesCancelled:withEvent:
0

精彩评论

暂无评论...
验证码 换一张
取 消