开发者

how to implement long press of UIButton

开发者 https://www.devze.com 2022-12-11 00:09 出处:网络
I want to do a certain task开发者_如何学Go if i hold and press the UIButton without release my finger, like showing some animation.so how can I execute that task when my finger is holding or pressing

I want to do a certain task开发者_如何学Go if i hold and press the UIButton without release my finger, like showing some animation.so how can I execute that task when my finger is holding or pressing the UIButton?

Thanks


Sounds like you want to handle touchesBegan and touchesMoved on your own view so you'll be able to time the duration its pressed. See the iPhone Examples website for an example.

0

精彩评论

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