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.
精彩评论