I am making a spin the bottle game. I can’t figure out how to make the bottle’s spin speed controlled by how fast you swipe your finger. I want it to work like the wheel of fortune, the faster you swipe the faster it spins.
I started to develop with the UIRotationGestureRecognizer, but I really don’t think it is the best way to do that.
Hey Check this demo.
You have to calculate
velocity. Which depends ontouchesMoved:withEvent:andtouchesEnded:withEvent:.This is also useful link : iphone development – UIRotationGestureRecognizer (Clockwise & counter Clockwise detection)?