How to detect a circular tap with UITouch in iOS?
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
// what goes here?
}
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.
I believe what you are looking for is some kind of way to detect a circular movement. I suggest you look into
UIGestureRecognizer. If so then perhaps this can help you, it’s aUIGestureRecognizersubclass for this purpose.I used this in an application where I wanted to add the ability to turn a round switch around, a bit like a volume control on a Hi-Fi system. Check it out.
https://bitbucket.org/danielphillips/dpcirculargesturerecognizer