0

I am trying to add a touch to UIButton.

I want it to be when I click on button, until I release the finger, it won't click on it.

I Have played with many touch events, Touch down, Touch up inside etc but none is working like that. This is a very common touch event. How can I add such a thing in iPhone UIButton?

4

3 回答 3

1

Touch up inside只会在您remove your finger从按钮时执行

触地事件将立即生效touch the button

示例项目: https ://www.dropbox.com/s/hm82u553ktyszbd/ST-16385963.zip

于 2013-05-05T16:14:26.443 回答
0

你能发布你的代码吗?听起来您希望 Touch Up Inside 功能在手指抬起之前不会触发。

于 2013-05-05T16:09:15.137 回答
0

Touch up inside是你应该在这里使用的事件。如果它不起作用,则意味着您没有正确实现它。

在此处输入图像描述

于 2013-05-05T16:11:03.457 回答