Is there any way to change the speed at which the value is updated when the user keep his finger pressed on + or – ? I did some research but couldnt find anything ! Any help is appreciated ! Thanks !
Share
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.
First idea – You could assign a UITapRecognizer and a UILongTapGesterRecognizer to the same view. Have the selector of the tap recognizer increment by one and the long tap recognizer’s selector increment by a larger number.
Second idea – you could capture touchesBegan: and start a timer, then start incrementing by a iVar set to 1. Each time the timer ticks increment the iVar that is used to increment.