开发者

how to implement long press of UIButton

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜