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
?
Touch up inside will only execute when you remove your finger
from the button
Touch down event will work as soon as you touch the button
.
Sample Project: https://www.dropbox.com/s/hm82u553ktyszbd/ST-16385963.zip
Could you post your code? It sounds like you want the Touch Up Inside functionality of not firing until the finger is raised.
Touch up inside is the event you should use here. If it doesn't work, that means you haven't implemented it correctly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.