Based on duration of UIButton Pressed, the same Buttton has to perform different tasks.
How to calculate duration of UIButton pressed?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Us can set 2 actions to your button and measure the time that passes between these 2 methods are called:
and in the two methods that get called you can do your duration measurement: